using iis 7.5, iis settings, web.config settings , c# code needed return current windows user?
web.config values are
<authentication mode="windows"> <identity impersonate="true" />
applicationconfig values are
<windowsauthentication enabled="true"> <providers> <add value="negotiate" /> <add value="ntlm" /> </providers> </windowsauthentication>
don't seem trick.
make sure set windows authentication enabled in visual studio project's properties. in project file (.csproj), translates to:
<iisexpresswindowsauthentication>enabled</iisexpresswindowsauthentication>
also, set managed pipeline mode project property classic:
<iisexpressuseclassicpipelinemode>true</iisexpressuseclassicpipelinemode>
Comments
Post a Comment