Monday, March 29, 2010

Server was unable to process request. Requested registry access is not allowed.

When we deployed our code, that has been working fine on dev/test environment to QA, it suddenly gave the issue: Server was unable to process request. ---> Requested registry access is not allowed. The user might kindly remember that this is an ASP.NET application using Web services.

Web services run under Network Service account, which didnt have permissions to write to event log.

Thanks to Frank. I found the solution on the following website: http://www.developmentnow.com/g/16_2004_11_0_0_8017/Cant-readwrite-to-Registry.htm

We just updated the registry entry
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application | did rt. mouse
permissions |Advanced |
and added the network service to here.
Clicked Edit on the network service and made sure it has selected set value and create checked. In our case everything was already checked.

Try the below option as suggested by Frank, if your situation is different than ours.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application I

did rt. mouse | permissions | Advanced | selected Power Users | Edit | selected Set Value and Create Subkey
save everything
 
Happy deployment !!