How to fix this error?
I'm trying to use forms authentication to allow users to access different parts of a site and I have the following code in the web.config file:
<authentication mode="Forms" />
<forms
name=".MyCookie"
loginUrl="myaccount.aspx"
protection="All"
timeout="15"
path="/"/>
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'
Source Error:
Line 38: -->
Line 39: <authentication mode="Forms" />
Line 40: <forms
Line 41: name=".MyCookie"
Line 42: loginUrl="myaccount.aspx"