×

Loading...
Ad by
Ad by

求教.NET问题,请进,谢谢。

I used aspnet_setreg utility (from Microsoft) to encrypt my domain ID and password and store in the registry. In my web.config file, I have following entry: <identity impersonate="true" userName="registry:HKLM\SOFTWARE\MYAPP\identity\ASPNET_SETREG, userName" password="registry:HKLM\SOFTWARE\MYAPP\identity\ASPNET_SETREG, password"/>. In registry, I also grant read permission to ASPNET account. This works fine in Windows 2000 server and IIS5 (native installation), but when I tried in Windows 2003 server (custom image) and IIS6, I got following error: "Error reading the password from the registry."

Any idea? Thanks in advance.
Report

Replies, comments and Discussions:

  • 工作学习 / IT技术讨论 / 求教.NET问题,请进,谢谢。
    I used aspnet_setreg utility (from Microsoft) to encrypt my domain ID and password and store in the registry. In my web.config file, I have following entry: <identity impersonate="true" userName="registry:HKLM\SOFTWARE\MYAPP\identity\ASPNET_SETREG, userName" password="registry:HKLM\SOFTWARE\MYAPP\identity\ASPNET_SETREG, password"/>. In registry, I also grant read permission to ASPNET account. This works fine in Windows 2000 server and IIS5 (native installation), but when I tried in Windows 2003 server (custom image) and IIS6, I got following error: "Error reading the password from the registry."

    Any idea? Thanks in advance.
    • 不知道这个link有没有用
      • 谢谢, 看过. I did grant read permission to Network Service but with no luck. The problem is that our OS is a custom image, everything is disabled by default, don't know what is missing ...
        • 只能帮你UP一下了
        • registry privileges for NetworkService?
          • yes, for Network Service account.
    • D
      • .NET 大虾们帮忙啊