想要在IIS 4.0框架中托管我的.NET 3.5 Web应用程序 [英] Want to host my .NET 3.5 web application in IIS 4.0 framework

查看:70
本文介绍了想要在IIS 4.0框架中托管我的.NET 3.5 Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个在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">

推荐答案

你没有' t正确更新了 web.config 文件。如错误所示,您已定义了已在机器级别定义的配置部分。解决方案是从 web.config 文件中删除整个脚本 sectionGroup



您可能需要进行其他更改。最简单的解决方案是使用Visual Studio中的项目升级工具。否则,您需要阅读错误消息,修复报告的错误,然后重复,直到没有更多的配置错误。



与新的ASP.NET 4根配置相关的配置错误 [ ^ ]
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[^]


这篇关于想要在IIS 4.0框架中托管我的.NET 3.5 Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆