Internal server error due to configsection
HTTP Error 500.19 - Internal Server Error
The
requested page cannot be accessed because the related configuration data for
the page is invalid.
Config
Source:
12:
13:
<configSections>
14:
<!-- For more information on Entity Framework configuration, visit
http://go.microsoft.com/fwlink/?LinkID=237468 -->
More
Information:
This error occurs when there is a problem reading the
configuration file for the Web server or Web application. In some cases, the
event logs may contain more information about what caused this error.
If you see the text "There is a duplicate
'system.web.extensions/scripting/scriptResourceHandler' section defined",
this error is because you are running a .NET Framework 3.5-based application in
.NET Framework 4. If you are running WebMatrix, to resolve this problem, go to
the Settings node to set the .NET Framework version to ".NET 2". You
can also remove the extra sections from the web.config file.
View more information »Solution:
Cause config section was not the first element in configuration node.
Just make it first element and you will not get any error.
Code before error
Code after fixing the code
0 comments:
Post a Comment