Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6206953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:32:31+00:00 2026-05-24T05:32:31+00:00

We have a user who recently changed name. Let’s say the old username was

  • 0

We have a user who recently changed name.

Let’s say the old username was old.name and the new username is new.name.

After editing the details in AD and logout/login with the new user name, our ASP.NET application shows the old name.

Plain ASP.NET, no MVC, using Windows authentication.

The code for getting the user name is:

WindowsPrincipal wp = (WindowsPrincipal)HttpContext.Current.User;
String userName = wp.Identity.Name.Substring(wp.Identity.Name.IndexOf("\\") + 1);

This returns old.name, not new.name.

I checked the IIS log files, these show the new name:

2011-04-05 11:41:44 W3SVC1 MARS 10.57.1.64 GET /eft/Default.aspx - 80 - 10.57.0.161 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+Trident/4.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729;+.NET4.0C;+.NET4.0E) 401 2 2148074254

2011-04-05 11:41:44 W3SVC1 MARS 10.57.1.64 GET /eft/Default.aspx - 80 SANOMABP\new.name 10.57.0.161 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+Trident/4.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729;+.NET4.0C;+.NET4.0E) 200 0 0

We have restarted the application pool, we have checked the AD data, and we have no more ideas what could be wrong.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T05:32:32+00:00Added an answer on May 24, 2026 at 5:32 am

    MOVING CORRECT ANSWER FROM COMMENTS FOR CLARITY:

    @paolo: you may try looking at support.microsoft.com/kb/946358

    Workaround


    To work around this issue, disable the local SID cache on the domain member computer. To do this, follow these steps:

    1. Open Registry Editor.

      To do this in Windows XP or in Windows Server 2003, click Start, click Run, type regedit, and then click OK.

      To do this in Windows Vista and newer, Click Start, type regedit in the Start Search box, and then press ENTER.

    2. Locate and then right-click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa

    3. Point to New, and then click DWORD Value.

    4. Type LsaLookupCacheMaxSize, and then press ENTER.

    5. Right-click LsaLookupCacheMaxSize, and then click Modify.

    6. In the Value data box, type 0, and then click OK.

    7. Exit Registry Editor.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the standard asp:Login control, and we have a user who recently changed
I have one user who gets an error message when he closes his browser.
I have a user who randomly gets a Script Error box (shown below) which
I have a business user who tried his hand at writing his own SQL
My goal for now is to have a user search for other users who
A question to maybe some who have worked extensively with WinUSB APIs or user
I have recently begin creating an image editing tool which will cater to a
I recently spoke to a user of SQL Server 2005 who said that their
I have a user who is trying to upload a 150 megabyte file using
I'm securing an ASP.NET MVC 2 application, and I have a user who is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.