| | |
Unrecognized configuration section 'forms'
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jun 2004
Posts: 11
Reputation:
Solved Threads: 0
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"
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"
You're closing the authentication section and then adding another authentication line ;-). Change it to this:
ASP.NET Syntax (Toggle Plain Text)
<authentication mode="Forms"> <forms name=".MyCookie" loginUrl="myaccount.aspx" protection="All" timeout="15" path="/"/> </authentication>
-Ryan Hoffman
.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
•
•
Join Date: Jul 2008
Posts: 3
Reputation:
Solved Threads: 0
I am having the same issue as the other person in the thread. I am working with a product called IssueManager, I have converted from version 2 (VB) to version 4 which is in C#. I was able to solve many of the problems but i am stuck on the last 6...they all have the same error message:
Unrecognized configuration section authentication. (D:\Inetpub\wwwroot\QA\im4\web.config line 81)
Unrecognized configuration section membership. (D:\Inetpub\wwwroot\QA\im4\web.config line 85)
Unrecognized configuration section roleManager. (D:\Inetpub\wwwroot\QA\im4\web.config line 100)
Unrecognized configuration section compilation. (D:\Inetpub\wwwroot\QA\im4\web.config line 113)
Unrecognized configuration section httpHandlers. (D:\Inetpub\wwwroot\QA\im4\web.config line 130)
Unrecognized configuration section httpModules. (D:\Inetpub\wwwroot\QA\im4\web.config line 136)
sample of the first one:
Line 79: <!--Authentication @0-D74B60F9-->
Line 80:
Line 81: <authentication mode="Forms">
Line 82: <forms loginUrl="Login.aspx"/>
Line 83: </authentication>
I have checked the IIS settings and it is using ASP.NET 2.0. What other suggestion do you have? The code is generated by the conversion process using a product called CodeChargeStudio 4.0.
Unrecognized configuration section authentication. (D:\Inetpub\wwwroot\QA\im4\web.config line 81)
Unrecognized configuration section membership. (D:\Inetpub\wwwroot\QA\im4\web.config line 85)
Unrecognized configuration section roleManager. (D:\Inetpub\wwwroot\QA\im4\web.config line 100)
Unrecognized configuration section compilation. (D:\Inetpub\wwwroot\QA\im4\web.config line 113)
Unrecognized configuration section httpHandlers. (D:\Inetpub\wwwroot\QA\im4\web.config line 130)
Unrecognized configuration section httpModules. (D:\Inetpub\wwwroot\QA\im4\web.config line 136)
sample of the first one:
Line 79: <!--Authentication @0-D74B60F9-->
Line 80:
Line 81: <authentication mode="Forms">
Line 82: <forms loginUrl="Login.aspx"/>
Line 83: </authentication>
I have checked the IIS settings and it is using ASP.NET 2.0. What other suggestion do you have? The code is generated by the conversion process using a product called CodeChargeStudio 4.0.
I need you to post your entire web.config file. The issue goes deeper then what you've posted.
Also, what you've done is considered "thread hijacking". Proper netiquette states that if you have an issue, you should start your own thread instead of hijacking someone else's thread!
Also, what you've done is considered "thread hijacking". Proper netiquette states that if you have an issue, you should start your own thread instead of hijacking someone else's thread!
-Ryan Hoffman
.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
try with this code
ASP.NET Syntax (Toggle Plain Text)
<authentication mode="Forms" > <forms name=".MyCookie" loginUrl="myaccount.aspx"></forms> </authentication>
Thanx,
Shiriyal
http://shiriyal.blogspot.com/
if you problem solved add me as a reputation and mark it mark as solved
Shiriyal
http://shiriyal.blogspot.com/
if you problem solved add me as a reputation and mark it mark as solved
![]() |
Similar Threads
- Configuration Error (ASP.NET)
- Website Login (ASP.NET)
- Unrecognized configuration section " (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: Attendance system
- Next Thread: in asp.net request.form
| Thread Tools | Search this Thread |
.net 3.5 activexcontrol ajax alltypeofvideos appliances asp asp.net bc30451 beginner bottomasp.net box browser businesslogiclayer button c# cac checkbox class click commonfunctions countryselector dataaccesslayer database datagrid datagridview datagridviewcheckbox datalist deployment development dgv dialog dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash formatdecimal formview gridview gudi iis javascript list listbox microsoft mono mouse mssql nameisnotdeclared news novell numerical opera panelmasterpagebuttoncontrols problem radio redirect registration relationaldatabases reportemail save schoolproject search security sessionvariables silverlight smartcard smoobjects software sql sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos vista visualstudio vs2008 web webapplications webdevelopemnt webdevelopment webprogramming webservice xsl youareanotmemberofthedebuggerusers





