user.identity.name doesn't work on server

Last post 04-17-2007 5:29 PM by BhaveshPatel. 20 replies.

Sort Posts:

  • Re: user.identity.name doesn't work on server

    01-24-2007, 2:31 PM
    • Loading...
    • nobe prince
    • Joined on 01-24-2007, 7:27 PM
    • Posts 1

    HI Bavesh

     

    try this

    System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString();

     

    prince

  • Re: user.identity.name doesn't work on server

    04-12-2007, 4:47 PM
    • Loading...
    • andiisuper
    • Joined on 01-26-2007, 8:16 PM
    • Posts 18

    I've got the same problem for my intranet Application.

    Everyone have encounter the same problem about nothing having User.Identity.Name updated. I believed that the Web.Config should always have something like these here

    <

    authentication mode="Windows"/>

    <authorization>

    <

    deny users="?" />

    </

    authorization>

     Also make sure you have Authentication Methods of your Virtual directory checked with Integrated Window Authentication.

    One more thing, make sure your browser support windown authentication by go to Menu -> Tools -> Internet Options -> Advanced -> Security -> check Enabled Integrated Windown Authentication.

     This works perfectly for me with 95% of my end user in my company, there there's some other user whose still get the pop up window message.

     I believe that this is not about the code, it's about your server security setup which I missed somewhere.

    WHOEVER ENCOUNTERED THIS AND GOT IT FIX, PLEASE POST IT UP TO HELP US WHO ARE IN FRUSTRATION WITH THIS.

    Thanks Guys

  • Re: user.identity.name doesn't work on server

    04-12-2007, 4:51 PM
    • Loading...
    • andiisuper
    • Joined on 01-26-2007, 8:16 PM
    • Posts 18

    I've got the same problem for my intranet Application.

    Everyone have encounter the same problem about nothing having User.Identity.Name updated. I believed that the Web.Config should always have something like these here

    <

    authentication mode="Windows"/>

    <authorization>

    <

    deny users="?" />

    </

    authorization>

     Also make sure you have Authentication Methods of your Virtual directory checked with Integrated Window Authentication.

    One more thing, make sure your browser support windown authentication by go to Menu -> Tools -> Internet Options -> Advanced -> Security -> check Enabled Integrated Windown Authentication.

     This works perfectly for me with 95% of my end user in my company, there there's some other user whose still get the pop up window message.

     I believe that this is not about the code, it's about your server security setup which I missed somewhere.

    WHOEVER ENCOUNTERED THIS AND GOT IT FIX, PLEASE POST IT UP TO HELP US WHO ARE IN FRUSTRATION WITH THIS.

    Thanks Guys

  • Re: user.identity.name doesn't work on server

    04-13-2007, 11:34 AM

    Hi guys... back to this topic after long time.

       as per me i tried all different way. my final conclusion is as below:

       In my intranet website i have created a different hierarchy( kind of folders inside folders).

     for example project -> Images -> HRImages

                       project -> Images -> ITImages etc....

    as well as the same kind of folder hierarchy for web forms too...

    like         project-> welcome.aspx

                  project -> HR -> welcome.aspx, (All HR pages).aspx

                  project -> HR -> welcome.aspx, (All IT pages).aspx

       and I have just one web.config for whole project, as per me i think that is what causing problem for poping up at client machine for authentication for each folder. so may be i have to put web.config in each and every folder( and that's weired.)... is there any one has any better idea for this kind of hierarchical project management... without adding bunch of web.config for each folder...... i m pointing to something like (site map.-- i m not sure whether it helps of not.)

    please reply

    work smarter, Not Harder.

    Bhavesh Patel
  • Re: user.identity.name doesn't work on server

    04-17-2007, 5:27 PM
    No answer for it guys???
    work smarter, Not Harder.

    Bhavesh Patel
  • Re: user.identity.name doesn't work on server

    04-17-2007, 5:29 PM
    No answer for it guys???
    work smarter, Not Harder.

    Bhavesh Patel
Page 2 of 2 (21 items) < Previous 1 2
Microsoft Communities
Page view counter