Question

I have a website with a webservice (asmx.cs) backend.

I would like the webservice to be able to make changes in the registry ('HKEY_LOCAL_MACHINE\SOFTWARE\CompanyName\SoftwareName').

I have added IIS_IUSRS as well as IIS_WPG with full control.

I have verified (via System.Security.Principal.WindowsIdentity.GetCurrent().Name) that the code is running as "NT AUTHORITY\IUSR"

Platform is windows 7, IIS 7.5.

I keep getting the error: "Access to the registry key ... is denied".

Has anyone encountered this?

Was it helpful?

Solution

Set the permissions on

HKLM\Software\WoW6432Node\[your company]\[your software]

but be carefull: this might be come a security hole.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top