We help IT Professionals succeed at work.
Get Started

Web.Config file: Set to Forms authentication but switches to windows authentication in IIS

Last Modified: 2012-05-05
I have the code shown below in the web.config file.

The website works fine but this code does not seem to work, as everytime I publish the site I have to go into IIS (version 5.1) and go to properties --> ASP.NET tab --> Edit Configuration --> Authentication tab --> Change from Windows to Forms.

Otherwise the website won't work... I just get an access denied error. That code should work right? Well, I could get around that by just making the changes manually, except that on the server they are using IIS version 5.0 and I can't see any ASP.NET tab. So, in fact I don't know how to manually make the changes on this version?

Any help appreciated. Thanks,


 <forms name="cookie" loginUrl="Login.aspx" timeout="2">
  <credentials passwordFormat="Clear" />
	<deny users="?"/>
	<allow users="*"/>

Open in new window

Watch Question
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE