Search code examples
asp.netwebserveriis-7.5registry

Registry access for Asp.net web service in IIS 7.5


HI,

I am getting "Requested registry access is not allowed." exception when trying to read a registry key in Windows Server 2008 r2 64 bit edition.

I have added the IIS application pool to Administrator group but still getting same error.

So far the solution on web din't work for me.

Thanks.


Solution

  • This issue has to do with granting the necessary authorization to the user account the application runs on. To read a similar situation and a detailed response for the correct solution, as documented by Microsoft, feel free to visit this post: http://rambletech.wordpress.com/2011/10/17/requested-registry-access-is-not-allowed/

    (from above, to prevent link rot)

    1. Find key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog”
    2. Right-click and choose “Permissions”.
    3. Put in the desired account

    also see http://support.microsoft.com/kb/842795