Setting the Authentication tag to Windows does not enable Windows authentication for a Web application (814900)
The information in this article applies to:
- Microsoft Visual C# .NET (2002)
- Microsoft Visual Basic .NET (2002)
- Microsoft ASP.NET (included with the .NET Framework) 1.0
- Microsoft Visual C# .NET (2003)
- Microsoft ASP.NET (included with the .NET Framework 1.1)
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual C# 2005, Express Edition
SUMMARYThe comment in the Web.config file that is generated for a
Web-based project for the Authentication tag states that setting the attribute to Windows enables Windows authentication for the Web application. When you
access the Web application, you expect that a Windows authentication challenge
is generated. However, this challenge is not displayed.CAUSEThe Windows authentication challenge is not generated
because the Anonymous Access option is enabled by default in
the Internet Information Server (IIS) settings for the particular Web
application. IIS uses the user credentials that are specified for the
Anonymous access option to authenticate any user for the Web
application. STATUS This
behavior is by design.WORKAROUNDClear the Anonymous access option for this
particular Web application, or for a particular Web page. To make appropriate
settings, follow these steps:
- Click Start, click Run,
type inetmgr in the Open text box, and
then click OK.
- In Internet Information Services (IIS) Manager Microsoft
Management Console (mmc), on the left pane, expand the computer node, expand
the Web Sites node, and then expand the Default Web
Site node.
- Right-click the virtual directory that you created for your
Web application, and then click Properties.
- Click the Directory Security tab, and then
click Edit under Anonymous access and authentication
control.
- Click to clear the Anonymous access
option.
Modification Type: | Major | Last Reviewed: | 1/5/2006 |
---|
Keywords: | kbide kbprb KB814900 kbAudDeveloper kbAudITPRO |
---|
|