If you need to enable Windows Authentication for your ASP.NET Application and you are using IIS Express (usually when you are using the built-in web server with Visual Studio), then you can edit the applicationhost.config file.
The applicationhost.config file is located in the My Documents\IISExpress\config directory (ex: C:\Users\MyUserName\Documents\IISExpress\config\applicationhost.config)
You can simply locate the location element in your applicationhost.config file representing your ASP.NET Web Application so that the section looks like the following:
The applicationhost.config file is located in the My Documents\IISExpress\config directory (ex: C:\Users\MyUserName\Documents\IISExpress\config\applicationhost.config)
You can simply locate the location element in your applicationhost.config file representing your ASP.NET Web Application so that the section looks like the following:
<location path="ASPNET.MyWebApp">
<system.webServer>
<security>
<authentication>
<windowsAuthentication enabled="true" />
</authentication>
</security>
</system.webServer>
</location>
That is all there is to it!!
No comments:
Post a Comment