Hi there,
Iam trying to access the eventlog class for remote machine from asp.net application
& I am getting the following error message & I am running ASP.netState service
under system a/c( changed in the machine.config -> processmodel->username=system(instead
of machine))& this a/c has privilege of run as a part of OS. Still it can't
access the remote machine's EventLog??? Any help in this direction greatly



Access to the registry key is denied.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access to the registry
key is denied.

The ASP.NET process is not authorized to access the requested resource. For
security reasons the default ASP.NET process identity is '{machinename}\ASPNET',
which has limited privileges. Consider granting access rights to the resource
to the ASP.NET process identity.

To grant ASP.NET write access to a file, right-click the file in Explorer,
choose "Properties" and select the Security tab. Click "Add" to add the "{machinename}\ASPNET"
user. Highlight the ASP.NET account, and check the Write box in the Allow