加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

在iis6.0中更改asp.net版本

发布时间:2020-12-16 04:12:02 所属栏目:asp.Net 来源:网络整理
导读:我们的生产服务器中有 Windows Server 2003 R2 Standard Edition.我们在ASP.NET 2.0中编写的服务器上有更多的实时应用程序. 我们在服务器上安装了.NET Framework 4.0. 我有一个示例ASP.NET 4.0应用程序,我在IIS 6.0中创建了一个示例网站.现在我想将ASP.NET版
我们的生产服务器中有 Windows Server 2003 R2 Standard Edition.我们在ASP.NET 2.0中编写的服务器上有更多的实时应用程序.

我们在服务器上安装了.NET Framework 4.0.

我有一个示例ASP.NET 4.0应用程序,我在IIS 6.0中创建了一个示例网站.现在我想将ASP.NET版本更改为4.0.

在此更改期间,我收到了一条警告消息:

“changing the framework requires
restart of w3svc service.
alternatively you can change the
version with out restarting the w3svc
service by running:aspnet_regiis.exe
-norestart -s iid-virtual-path. do you want to continue(this will change the
framework version and restart the
w3svc service)”

我的问题是,如果我将版本更改为4.0(仅适用于我的示例网站),那是否会影响现有的实时应用程序?这些应用程序正在运行ASP.NET 2.0.

解决方法

如果您只是通过新站点的属性ASP.NET选项卡更改ASP.NET版本,则更改将仅应用于该站点.

您必须确保的是,您不要尝试在同一应用程序池中运行ASP.NET 2.0和ASP.NET 4.0应用程序.如果你这样做,你会遇到这个错误:

您还将在Application Event日志中看到此tell-tale事件:

Event Type: Error
Event Source:   ASP.NET 2.0.50727.0
Event Category: None
Event ID:   1062
Date:       12/01/2011
Time:       12:31:43
User:       N/A
Computer:   KK-DEBUG
Description:
It is not possible to run two different versions of ASP.NET in the same 
IIS process. Please use the IIS Administration Tool to reconfigure your
server to run the application in a separate process.

为新的ASP.NET 4.0应用程序创建一个新的应用程序池(您可以通过克隆现有池来实现):

然后在其属性页上将新的ASP.NET Web应用程序分配给此池:

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读