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 –>

 

image

 

Enable Windows Authentication

Disable Anonymous Authentication

image

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" />

<authorization>
   <deny users="?"/>
</authorization>

 

Now you”l get your Identity back!

 

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

Turn Windows features on or off

image

image

 

image

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 inetmgr..it worked

  3. Abhilash said:

    Thanks dude

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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: