web.config error with forms authentication

  • Thread starter Thread starter Andrew Banks
  • Start date Start date
A

Andrew Banks

Can anyone help me out with why the following code in web.config

<authentication mode="Forms" />
<forms loginUrl = "Secure/Login.aspx" />
</authentication>

gives me the following error

Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.
Parser Error Message: Unrecognized configuration section 'forms'

Thanks in advance
 
Problem solved - I must have bought the worst beginners book going! More
errata than you can shake a stick at and no errata available because wrox
ceased trading!!
 
You already closed the authentication tag. It should be

<authentication mode="Forms">
<forms loginUrl = "Secure/Login.aspx" />
</authentication>

Tu-Thach
 
Which book is it that you are using?

Andrew Banks said:
Problem solved - I must have bought the worst beginners book going! More
errata than you can shake a stick at and no errata available because wrox
ceased trading!!
 
Back
Top