What worked for me in debugging with VS2015:
Open the IIS Express configuration file: %userprofile%\Documents\IISExpress\config\applicationhost.config
There is a line that says:
<windowsAuthentication enabled="false">
Change it to:
<windowsAuthentication enabled="true">
Then I added to my Web.conf:
<authentication mode="Windows"> </authentication> <authorization> </authorization>
Then I was able to pull out the Windows username with:
Request.LogonUserIdentity.Name
source share