Results 1 to 3 of 3

Thread: Problem with impersonation!!!!!!

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602

    Problem with impersonation!!!!!!

    Ok, I want to run my asp.net app under a special account... I have created it, and used the handy tool aspnet_setreg.exe to store username and password in the registry encrypted.

    I added this tag in web.config

    VB Code:
    1. <identity impersonate="true" userName="registry:HKLM\SOFTWARE\GPSWEB\identity\ASPNET_SETREG,userName" password="registry:HKLM\SOFTWARE\GPSWEB\identity\ASPNET_SETREG,password" />

    When I run the app I get the following error:

    Configuration Error
    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Error reading the password from the registry.



    I found a kb article decribing that I need to upgrade the framework in order to uise this securitymodel... here is the link
    http://support.microsoft.com/default...b;EN-US;329250

    I have read this article over and over but HOW ON EARTH DO I DOWNLOAD THE FIX????? WHERE IS THE FIX FILE???? Im pretty sure it will fix my problem.

    has anyone else tried this?

    this is pretty urgent...
    Henrik

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    Try downloading the latest service pack for the 1.0 framework

    http://msdn.microsoft.com/netframewo...p/default.aspx

    from msdn:
    Determine the Version of the .NET Framework on a Computer Running Microsoft Windows XP

    1. Click Start, and then click Control Panel.
    2. In Classic view, double-click Administrative Tools.
    3. Double-click either Microsoft .NET Framework Configuration or Microsoft .NET Framework 1.1 Configuration.
    4. In the .NET Framework Configuration window, click About .NET Framework Configuration on the Help menu.

    The .NET Framework version number appears in the About .NET Framework Configuration dialog box. If the version number is 1.0.3705.0, you have version 1.0 without any service packs installed.
    Determine the Version of the .NET Framework on a Computer Running Microsoft Windows 2000

    1. Click Start, and then click Run.
    2. In the Open text box, type mmc.exe, and then press ENTER.
    3. In the Console1 window, click Console, and then click Add/Remove Snap-in.
    4. In the Add/Remove Snap-in dialog box, click Add.
    5. In the list of available snap-ins, select .NET Framework Configuration or .NET Framework 1.1 Configuration.
    6. Click Add, and then click Close.
    7. In the Add/Remove Snap-in dialog box, select .NET Configuration in the list of added snap-ins.

    The About button becomes available.
    8. Click About. The .NET Framework version number appears in the About .NET Framework Configuration dialog box. If the version number is 1.0.3705.0, you have version 1.0 without any service packs installed.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602
    I have version 1.1.4322.573
    I guess I already have the latest service packs... it's a windows 2003 server.

    But I dtill haven't been able to read the darned username and password from the registry.. still get the annoying error "password can't be read from the registry"


    thanks
    Henrik

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width