문제

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?

도움이 되었습니까?

해결책

Set the permissions on

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

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top