I'm trying to implement forms based security in an ASP.NET web
application. I'm having some issues with web.config. This is my
authentication tag:
<authentication mode="Forms">
<forms name=".MENTORAUTH" loginURL="secure/login.aspx"
protection="All">
</forms>
</authentication>
secure is a sub-folder in the application that was created so that
different user authorizations could be implemented at that level in
addition to the SSL (note that SSL has not yet been added as I am
still debugging the site).
When I try to run the application, ASP.NET tells me that loginURL is
not a valid attribute. Every example of doing this I can find
includes loginURL (including all the stuff on MSDN). Obviously it
does exist. Is there a formatting error I don't know about or other
reason why ASP.NET would not like this statement? It is included
within the <configuration> and <System.web> tags if that helps.