Problem with the web.config file

mike55

Contributor
Joined
Mar 26, 2004
Messages
727
Location
Ireland
Hi all

Am attempting to switch from Windows authentication to Forms authentication on my project.The first step of setting the authentication is no prob.
Code:
<authentication mode ="Forms">
</authentication>

Now the default start page is a page called Login.aspx, my default webpage is "Default.aspx", now to specify this i went
Code:
<authentication mode ="Forms">
   <Forms loginurl="Default.aspx"></Forms>
</authentication>
The problem is that the application will not recognise the loginUrl keyword.

Anyone got a suggestion

Mike55
 
mike55 said:
Hi all

Am attempting to switch from Windows authentication to Forms authentication on my project.The first step of setting the authentication is no prob.
Code:
<authentication mode ="Forms">
</authentication>

Now the default start page is a page called Login.aspx, my default webpage is "Default.aspx", now to specify this i went
Code:
<authentication mode ="Forms">
   <Forms loginurl="Default.aspx"></Forms>
</authentication>
The problem is that the application will not recognise the loginUrl keyword.

Anyone got a suggestion

Mike55


Problem solved, the web.config file seems to be case sensitive.

Mike55
 
Greetings Mike:

This is a sample of the web config settings I use. Modify them how you like. I believe that it is case sensitive.

Code:
<authentication mode="Forms"> 
          <forms name="SiteName" protection="All" loginUrl="yourloginpagehere.aspx" timeout="60"/>
</authentication>
Hope this is somehow usefull to you.
 
Back
Top