Tips and Tricks in a world of Mix

OS: windows 7 x64 bit

IIS: 7.5

run –> inetmgr –> click your website –> enter in features view Authentication –>




Enable Windows Authentication

Disable Anonymous Authentication


Pay attention that you did this definitions on your website specificly!!

Another solution is to add to web.config in the system.web section:

<authentication mode="Windows" />

   <deny users="?"/>


Now you”l get your Identity back!


(if you don’t have the right Authentication options then :

Turn Windows features on or off





Turn Windows features on or off  –> IIS –> WWWS –> Security –> Basic, Digest and Windows.


At the end restart your machine for the changes to take effect.

Now do the beginning of the post. )

Comments on: "HttpContext.Current.User.Identity.Name is Empty" (3)

  1. John Doe said:

    This absolutely did NOT work. Thanks.


  2. Mehta said:

    Thanks a lot!
    I modified the worked


  3. Abhilash said:

    Thanks dude


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Tag Cloud

%d bloggers like this: