Wednesday, March 28, 2007

Getting IIS/ASP.NET back to the default forms authentication can be difficult. A small mistake is hard to find. I am writing this mainly so I can go back and look at it next time I have trouble.

1. Be sure the web site exists, and is configured to the correct directory.
2. On directory security, be sure anonymous access is checked, that user name is set to the default, with Allow IIS to control password checked.
3. Be sure integrated windows authentication is checked.
4. Be sure nothing else is checked.
5. Check the web.config, and be sure it looks something like.

<authentication mode="Forms">
<forms path="/" name="CookieName" loginurl="login.aspx"><authentication mode="Forms">
<forms loginurl="login.aspx" name="CookieName" path="/"></forms>
</authentication>
<authorization>
<deny users="?">
<allow users="*">
</authorization><allow users="*">
</authorization>

2 Comments:

Anonymous Anonymous said...

You have really great taste on catch article titles, even when you are not interested in this topic you push to read it

2:19 AM  
Anonymous Anonymous said...

It is useful to try everything in practice anyway and I like that here it's always possible to find something new. :)

12:51 AM  

Post a Comment

<< Home