Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hi,

I have a VB.NET web application developed in 3.5 framework. It is currently hosted in IIS 7.5 with 2.0 framework version. I am trying to host it with 4.0 application pool in IIS. But getting some internal error at page level.
C#
HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.


Detailed Error Information 


Module
IIS Web Core 

Notification
BeginRequest 

Handler
Not yet determined 

Error Code
0x800700b7 

Config Error
There is a duplicate 'system.web.extensions/scripting/scriptResourceHandler' section defined  

Config File
\\?\C:\inetpub\wwwroot\WCSNShareSetup\web.config 



Requested URL
http://localhost:80/WCSNShareSetup/UserMaintenance/wfrmLogin.aspx 

Physical Path
C:\inetpub\wwwroot\WCSNShareSetup\UserMaintenance\wfrmLogin.aspx 

Logon Method
Not yet determined 

Logon User
Not yet determined 



Config Source     5:       <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
    6:         <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
    7:         <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">



I tried updating the web.config file. But no luck :( Looking for some quick replies. TIA!

What I have tried:

1. Added following part in configuration section-
<configuration>
<startup>
<supportedruntime version="v2.0.50727">
<supportedruntime version="v4.0">



2. Changed compiler version from 2.0.0.0 to 4.0.0.0

<system.codedom>
<compilers>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089" warninglevel="4">
<provideroption name="CompilerVersion" value="v3.5">
<provideroption name="OptionInfer" value="true">
<provideroption name="WarnAsError" value="false">
Posted
Updated 17-Nov-16 3:31am
v5
Comments
Richard Deeming 16-Nov-16 9:54am    
If you want us to help you fix some errors, then you need to tell us what those errors are!

Click "Improve question" and update your question with the details of the errors you're getting.

1 solution

You haven't updated your web.config file properly. As the error says, you've defined a configuration section which has already been defined at the machine level. The solution is to remove the entire "scripting" sectionGroup from your web.config file.

There will probably be other changes you'll need to make. The simplest solution is to use the project upgrade tools in Visual Studio. Otherwise, you'll need to read the error message, fix the error that's reported, and repeat until there are no more configuration errors.

Configuration Errors Related to New ASP.NET 4 Root Configuration[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900