aspnet_setreg Registry encryption issue

Last post 09-23-2008 5:55 AM by Wencui Qian - MSFT. 1 replies.

Sort Posts:

  • aspnet_setreg Registry encryption issue

    09-18-2008, 1:54 PM
    • Member
      21 point Member
    • ds12will
    • Member since 07-02-2007, 7:10 PM
    • Posts 146

    I'm in the process of testing the encryption method of using aspnet_setreg in .net 1.1 to establish a encrypted connection string.  To read the registry you have to give ASPNET user read access to that specific registry or a security error occurs.

     The testing is now on a DEV server that is Windows 2003 using 6.0 IIS.  From the following reading instead of using ASPNET user I should have to use NETWORK SERVICE to give read access to the registry. Here is the link: http://support.microsoft.com/kb/329290

     I haven't had the chance to test using this name because we dont have access to the DEV server, the server people have to test if for us.  But has anyone had experience with this and instead used NETWORK Service instead of ASPNET user to read a registry or something?

     

  • Re: aspnet_setreg Registry encryption issue

    09-23-2008, 5:55 AM
    Answer

    Hi ds12will,

    The testing is now on a DEV server that is Windows 2003 using 6.0 IIS.

    The account who runs the ASP.NET application is determined by the Operation System. Since you're testing your application on Windows 2003, it'll run under the Network Service account. You have to grant it the permissions to access the registry. The Windows XP is using ASPNET account. If you want to test it, you can run your application in a Windows XP machine.

    Thanks.

    David Qian
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (2 items)