Disable IIS Anonymous Authentication

Discussion in 'ASP.NET / ASP.NET Core' started by craig61a, Apr 10, 2011.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I have a site that uses Forms Authentication, and have denied anonymous users for a particular subfolder with web.config file. When I navigate there, my login.aspx prompts for credentials then displays the default page in that subfolder. I then get a popup from IIS asking me for Connect: Username/Password. I tried to find the proper place to disable this in IIS Manager and Permissions manager on the control panel, but about the only thing I could figure out how to do was change the various user quotas under permission manager. I'm guessing that I need to set IIS up for Forms Authentication, but I sure couldn't figure out how to do this in the control panel.
     
  2. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

    You won't be able to do this through your Control Panel. You can either manually modify your web.config file to enable Forms Authentication or use IIS Manager. Here's a KB article on how to connect to your site with IIS Manager:

    http://support.discountasp.net/KB/a400/how-to-connect-to-windows-2008iis-7-using-microsoft.aspx

    You can then click on the Authentication module to enable Forms Authentication. The module adds/writes the changes to your web.config file for you.
     
  3. OK, thanks. I edited the web.config in the root manually to set the Forms Authentication. I'll try downloading the IIS remote mgr and set it through there. I just want to disable the connect prompt that pops up after I have gone through my Login.aspx and arrive at the protected page.
     
  4. Got IIS 7 manager installed and looked at Authentication. Noted Anonymous, Basic and Forms authentication were enabled. After some more reading I tried disabling Basic Authentication, and that seems to have done the trick. I no longer am prompted by IIS after entering my credentials into my Login.aspx form. Which is what I want for now...
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page