Karatas, FERHAT
I would love to change the world, but they won't give me the source code!
Requested Registry Access Is Not Allowed
23.8.2006 09:20:17 - Filed under : Asp.net
"Requested Registry Access Is Not Allowed" Error Message When ASP.NET Application Tries to Write New EventSource in the EventLog.
This problem occurs because the user account that you used to log on does not have sufficient permissions.
If you log on to a computer as a regular user, and if you try to use Microsoft Visual Studio .NET to create a custom event log to register events, you may receive the following error message:
An unhandled exception of type 'System.Security.SecurityException' occurred in mscorlib.dll
Additional information: Requested registry access is not allowed.

Grant permission to create a custom event log
1. Log on to the computer as an administrator.
2. Click Start, click Run, type regedit in the Open box, and then click OK. The Registry Editor window appears.
3. Locate the following registry subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog
4. Right-click Eventlog, and then click Permissions. The Permissions for Eventlog dialog box appears.
5. Click Advanced. The Advanced Security Settings for Eventlog dialog box appears.
6. In the Name column, double-click the Users group. The Permission Entry for Eventlog dialog box appears.
7. Select the Set Value check box, select the Create Subkey check box, and then click OK.
8. Quit Registry Editor, and then log off from the administrator account.
9. Log on to the computer as a regular user.
10. Try to create a custom event log by using Visual Studio .NET, and then try to write to this event log by using an application that is built on Visual Studio .NET.

http://support.microsoft.com/?id=842795

Related Terminology : Event Logging, Asp.net, Web Service
with 0 comments

What do you think ?
Security Code 9999
Check S. Code
Name  
Email  
Home Page  
Comments