The requested page cannot be accessed because the related configuration data for the page is invalid.
Config section 'system.web/authorization' already defined. Sections must only appear once per config file. See the help topic <location> for exceptions
when i publish the site using file system and check the option for precompile during publishing. i get this error again
Member
142 Points
562 Posts
Sections must only appear once per config file. See the help topic <location> for exceptions.
Jan 24, 2014 03:43 PM|shan000|LINK
Hi , im getting error as :
Sections must only appear once per config file. See the help topic <location> for exceptions.
web.config 61 0 VehicleSystem.UI
following is my web.config code :
Participant
1390 Points
323 Posts
Re: Sections must only appear once per config file. See the help topic <location> for exceptions....
Jan 24, 2014 03:59 PM|valuja|LINK
Hi,
You have the following declared twice:
remove one of them and you won't get the error.
Best regards
Johan
Member
142 Points
562 Posts
Re: Sections must only appear once per config file. See the help topic <location> for exceptions....
Jan 24, 2014 04:38 PM|shan000|LINK
i have removed this when still i get this error :
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Config section 'system.web/authorization' already defined. Sections must only appear once per config file. See the help topic <location> for exceptions
when i publish the site using file system and check the option for precompile during publishing. i get this error again
All-Star
52523 Points
15677 Posts
Re: Sections must only appear once per config file. See the help topic <location> for exceptions....
Jan 24, 2014 06:05 PM|oned_gk|LINK
Suwandi - Non Graduate Programmer
All-Star
23975 Points
4084 Posts
Re: Sections must only appear once per config file. See the help topic <location> for exceptions....
Jan 27, 2014 01:46 AM|Starain chen - MSFT|LINK
Hi shan,
Based on the error message, the reason is the authorization of a path has been defined multiple times.
However, you said that you still get the error even though the section as valuja said has been removed.
So, I suggest that first, please try to clean the project and rebuild, then check the result.
On the other hand, please remove all location sections and add a location after each time succeed test.
Thanks
Best Regards