User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 423,104 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,379 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 9175 | Replies: 4
Reply
Join Date: Jun 2004
Posts: 11
Reputation: maxtrixx is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
maxtrixx maxtrixx is offline Offline
Newbie Poster

Unrecognized configuration section 'forms'

  #1  
Jun 17th, 2004
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"
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2002
Location: New York
Posts: 862
Reputation: Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light 
Rep Power: 12
Solved Threads: 16
Moderator
Tekmaven's Avatar
Tekmaven Tekmaven is offline Offline
The C# Man, Myth, Legend

Re: Unrecognized configuration section 'forms'

  #2  
Jun 18th, 2004
You're closing the authentication section and then adding another authentication line ;-). Change it to this:

<authentication mode="Forms"> 
	<forms name=".MyCookie" loginUrl="myaccount.aspx" protection="All" timeout="15" path="/"/>
</authentication>
-Ryan Hoffman

ASP.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
Reply With Quote  
Join Date: Jul 2008
Posts: 3
Reputation: dmarino1 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
dmarino1 dmarino1 is offline Offline
Newbie Poster

Re: Unrecognized configuration section 'forms'

  #3  
Jul 2nd, 2008
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.
Reply With Quote  
Join Date: Feb 2002
Location: New York
Posts: 862
Reputation: Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light 
Rep Power: 12
Solved Threads: 16
Moderator
Tekmaven's Avatar
Tekmaven Tekmaven is offline Offline
The C# Man, Myth, Legend

Re: Unrecognized configuration section 'forms'

  #4  
Jul 3rd, 2008
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!
-Ryan Hoffman

ASP.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
Reply With Quote  
Join Date: May 2008
Location: Hyderabad, India
Posts: 261
Reputation: sreein1986 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 30
sreein1986's Avatar
sreein1986 sreein1986 is offline Offline
Posting Whiz in Training

Re: Unrecognized configuration section 'forms'

  #5  
Jul 3rd, 2008
try with this code
<authentication mode="Forms" >

<forms name=".MyCookie" loginUrl="myaccount.aspx"></forms>

</authentication>
Thanx,
Sreekanth

www.saap.in
if you problem solved add me as a reputation and mark it mark as solved
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 6:11 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC