Hi Marty,
Thank you for using Microsoft Newsgroup Service. From your description,
you've met some problem when trying to
manually add a key under
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application"
and then write eventlog in ASP.NET application. Please correct me if my
understanding of your problem is not quite accurate.
Based on my experience, try such reg key operation in ASP.NET will occur
some security errors. Just as Shiv Kumar's suggestion, the ASP.NET
application normally runs under the MACHINE\ASPNET account which may hasn't
the appropriate privilige for operating the reg key.
Also, as for the problem in this issue, would you provide some more
information on what errors you met. Is the something like "Requested
Registry Access Is Not Allowed" error when wrote evenlog in ASP.NET?
And here is a knowlege base article on:
#"Requested Registry Access Is Not Allowed" Error Message When ASP.NET
Application Tries to Write New EventSource in the EventLog
http://support.microsoft.com/?id=329291
You may have a check to see whether it helps. Meanwhile, if you have any
other questions on it, please feel free to post here.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)