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.
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:
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">