ASP.NET User.Identity.Name returns wrong value?

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default ASP.NET User.Identity.Name returns wrong value?

    When I got Visual Studio setup and configured to remotely debug c#
    ASP.NET applications on a development IIS server I apparently changed
    something on one of my .config files.

    (1) When I login into my workstation using my domain account and
    connect to our development IIS server User.Identity.Name should return
    my domain user account. Instead, User.Identity.Name returns the local
    Administrator account on the development IIS server.

    (2) When I login into my workstation using another user's domain
    account and connect to our development IIS server User.Identity.Name
    returns that user's domain account.

    (3) When I login into my workstation using my domain account and
    connect to our production IIS server User.Identity.Name properly
    returns my domain user account.

    Since, other users can login to my workstation and get the correct
    response from the development server it seems to me the problem is
    somewhere in my profile.

    Anybody got any ideas? I've been struggling with this for days.

    Thanks,
    John

    JohnH. Guest

  2. Similar Questions and Discussions

    1. Capturing identity of the user
      Hi... I have made a asp page that accepts some data from user and stores it in MS Access database. Now...I want to identify the user who filled...
    2. User.Identity.Name returns nothing / NULL
      Hi I have created two pages, the login.aspx and the formA.aspx, and each of this has a corresponding *.cs files for code separation the scenario...
    3. *** User.Identity.Name
      After a user logging on, User.Identity.Name contains domain/logon name of the current user. How to get other information of the current user such as...
    4. User.Identity.Name
      Hi, I am using Forms authentication -in which - I am trying to use User.Identity.Name, i am getting the user name in this field even after i...
    5. Old ASP Windows User Identity
      Is there a way in ASP (3.0, not .NET) for me to determine who the current windows users is (i.e. the user who was authenticated and who is...
  3. #2

    Default Re: ASP.NET User.Identity.Name returns wrong value?

    What do you mean by "connect to our development IIS server"? Open a page
    via IE? Start debugging a project via VStudio? Something else entirely?


    "JohnH." <john@jrcc.net> wrote in message
    news:1111179704.797874.172670@l41g2000cwc.googlegr oups.com...
    > When I got Visual Studio setup and configured to remotely debug c#
    > ASP.NET applications on a development IIS server I apparently changed
    > something on one of my .config files.
    >
    > (1) When I login into my workstation using my domain account and
    > connect to our development IIS server User.Identity.Name should return
    > my domain user account. Instead, User.Identity.Name returns the local
    > Administrator account on the development IIS server.
    >
    > (2) When I login into my workstation using another user's domain
    > account and connect to our development IIS server User.Identity.Name
    > returns that user's domain account.
    >
    > (3) When I login into my workstation using my domain account and
    > connect to our production IIS server User.Identity.Name properly
    > returns my domain user account.
    >
    > Since, other users can login to my workstation and get the correct
    > response from the development server it seems to me the problem is
    > somewhere in my profile.
    >
    > Anybody got any ideas? I've been struggling with this for days.
    >
    > Thanks,
    > John
    >

    Nicole Calinoiu Guest

  4. #3

    Default Re: ASP.NET User.Identity.Name returns wrong value?

    Browse a page via IE, also run/debug the page via Visual Studio. Also,
    when I log into other workstation w/ my domain account and browse web
    pages on the development server User.Identity.Name returns my domain
    account. It is only when I log into my personal workstation and browse
    pages on the development server that User.Identity.Name return the
    local admin account of the development server.

    Thanks,
    John

    JohnH. Guest

  5. #4

    Default Re: ASP.NET User.Identity.Name returns wrong value?

    John,

    I'm guessing that when you "log into my personal workstation", you're using
    a local account that has cached credentials for the web server. To verify
    this, log in under that account, then launch the "User Accounts" control
    panel applet. You want to reach the password management functionality,
    which will be available in one of the following two ways:

    1. If your account is not an admin, you will be asked to provide admin
    credentials when launching the applet. Below the credentials text boxes,
    there should be a link to "manage your passwords", which you should click
    instead of providing admin credentials.

    2. If your account is an admin, click the "Manage Passwords" button on the
    advanced tab of the applet UI.

    Once you've opened the password list, do you see an entry for your dev
    server? If so, delete it (you can always recreate it later), then try to
    browse to a secured page your dev server using IE.

    HTH,
    Nicole


    "JohnH." <john@jrcc.net> wrote in message
    news:1111181903.064959.154540@g14g2000cwa.googlegr oups.com...
    > Browse a page via IE, also run/debug the page via Visual Studio. Also,
    > when I log into other workstation w/ my domain account and browse web
    > pages on the development server User.Identity.Name returns my domain
    > account. It is only when I log into my personal workstation and browse
    > pages on the development server that User.Identity.Name return the
    > local admin account of the development server.
    >
    > Thanks,
    > John
    >

    Nicole Calinoiu Guest

  6. #5

    Default Re: ASP.NET User.Identity.Name returns wrong value?

    Nicole,

    That worked!!! Oh my God! I can not tell you how much I have
    been struggling with that. It was driving me absolutely crazy. Thank
    you so much for taking the time to respond to my question.

    8-)
    John

    JohnH. Guest

  7. #6

    Default Re: ASP.NET User.Identity.Name returns wrong value?

    Nicole,

    Wow, that was it. Thank you for taking the time to respond to my
    posting. This was really driving me nuts.

    John

    JohnH. Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139