OS: windows 7 x64 bit
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" />
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. )