问题描述
我有一个在3.5框架下开发的VB.NET Web应用程序。它目前托管在IIS 7.5中,具有2.0框架版本。我试图在IIS中使用4.0应用程序池来托管它。但是在页面级别获得一些内部错误。
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://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">
我尝试更新web.config文件。但没有运气:(寻找一些快速回复.TIA!
我尝试过:
1.在配置部分添加以下部分 -
< configuration>
< startup>
< supportedruntime version =v2.0.50727>
< supportedruntime version =v4.0>
2.将编译器版本从2.0.0.0更改为4.0.0.0
< system.codedom>
< compilers>
< compiler language =vb; vbs; visualbasic; vbscriptextension =。vbtype =Microsoft.VisualBasic.VBCodeProvider,System,Version = 4.0.0.0,
Culture = neutral,PublicKeyToken = b77a5c561934e089warninglevel =4>
< provideroption name =CompilerVersionvalue =v3.5 >
< provideroption name =OptionInfer value =true>
< provideroption name =WarnAsErrorvalue =false>
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">
推荐答案
这篇关于想要在IIS 4.0框架中托管我的.NET 3.5 Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!