Setting permissions to write to event log

How to set permissions for ASP.NET to write to the registry without making ASP.NET a local admin.

This tip was submitted to the Visual Studio .NET Info Center Tip Exchange by member Clive Chinery. Let other users know how useful it is by rating the tip below. Got a tip or code of your own you'd like to share? Submit it here.


This tip explains how to set permissions for ASP.NET to write to the registry without making ASP.NET a local admin.

Code:

 

  1. Run REGEDT32 and navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog and create, for example, APP_LOG.

     

  2. Open Event Log Viewer and set up the log parameters (size, overwrite, etc.).

     

  3. In REGEDT32, highlight the log, click Security, and then click Permissions within the form menu.

     

  4. Click Add to get an NT user selection dialog.

     

  5. Select the user ASP.NET, click Add and then OK to leave the selection dialog.

     

  6. Select appropriate permissions of Read or Full Control (or Advanced if a more tailored setting is required).


This was first published in March 2003

Dig deeper on ASP.NET development tools

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchCloudComputing

SearchSoftwareQuality

SearchSOA

TheServerSide

SearchCloudApplications

Close