From: Walter Wang [MSFT] on
Hi Jerry,

Thank you for your quick update.

I've reviewed your past post dated Aug. 11 about "Error Writing to Event
Log". In that post, your question is about writing event log from ASP.NET
web application.

I understand that you currently have created the event source in registry
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\DD
app which is required because by default the service account NETWORK
SERVICE running ASP.NET will not have the privilege to create it
automatically.

However, you need another registry value ErrorMessageFile to fix the issue
you're seeing:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\D
Dapp]
"EventMessageFile"="c:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Event
LogMessages.dll"

Change the path accordingly.

This is required by the Event Log system.

I hope this helps. Please feel free to post here if anything is unclear.

By the way, for ASP.NET related questions, I recommend you post in the
newsgroup microsoft.public.dotnet.framework.aspnet. Thank you.


Regards,
Walter Wang (wawang(a)online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

From: Walter Wang [MSFT] on
Hi Jerry,

Thank you for your quick update.

I've reviewed your past post dated Aug. 11 about "Error Writing to Event
Log". In that post, your question is about writing event log from ASP.NET
web application.

I understand that you currently have created the event source in registry
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\DD
app which is required because by default the service account NETWORK
SERVICE running ASP.NET will not have the privilege to create it
automatically.

However, you need another registry value ErrorMessageFile to fix the issue
you're seeing:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\D
Dapp]
"EventMessageFile"="c:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Event
LogMessages.dll"

Change the path accordingly.

This is required by the Event Log system.

I hope this helps. Please feel free to post here if anything is unclear.

By the way, for ASP.NET related questions, I recommend you post in the
newsgroup microsoft.public.dotnet.framework.aspnet. Thank you.


Regards,
Walter Wang (wawang(a)online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

From: Walter Wang [MSFT] on
Hi Jerry,

Have you tried my suggestion in my last post? Does it work for you? Please
post here if anything is unclear.

Regards,
Walter Wang (wawang(a)online.microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.