IIS6 与 ASP.NET 3.5 和 4.0 在单独的应用程序池中运行

发布于 2024-12-27 01:26:12 字数 837 浏览 1 评论 0原文

我在生产服务器中运行 MVC 应用程序时遇到问题。我的默认网站运行 ASP.NET 2.0 并且使用 DefaultAppPool。

阅读文章 在 ASP.NET 中运行多个版本的框架 我按照 Scott Forsyth 的指示创建了一个新的应用程序池。我还在 IIS 中创建了一个新网站,并为我的应用程序创建了一个虚拟目录。因此,我的新网站使用端口 81,我的 MVC 应用程序的虚拟目录使用新的应用程序池。

在我看来,现在一切都应该分开了。新的 MVC 应用程序应该启动一个使用 ASP.NET 4.0 的新 w3wp.exe 进程。在默认网站下运行的其他应用程序应创建一个使用 ASP.NET 2.0 的进程。

不幸的是,情况并非如此。我不断收到 1062 错误:

不可能在同一个 IIS 进程中运行两个不同版本的 ASP.NET。请使用 IIS 管理工具重新配置您的服务器以在单独的进程中运行该应用程序。

我多次尝试重新启动服务器。此错误并不总是发生。例如,上周 1 天一切正常,然后今天早上(星期一)我收到此错误。我在默认网站中的所有应用程序都停止工作,并且我在事件查看器中看到其他错误,例如 EventID:1309,错误:

异常信息: 异常类型:WebException 异常消息:操作超时

有人可以帮忙吗?谢谢。

I have a problem running an MVC application in my production server. My default website is running ASP.NET 2.0 and it's using the DefaultAppPool.

After reading the article Running multiple versions of the Framework in ASP.NET I followed what Scott Forsyth's instruction and created a new application pool. I also created a new website in IIS and created a Virtual Directory for my application. So my new website uses port 81 and the Virtual Directory for my MVC app uses the new application pool.

To me it seems that everything should be separate now. The new MVC app should spin up a new w3wp.exe process that uses ASP.NET 4.0. The other applications running under the default website should create a process that uses ASP.NET 2.0.

Unfortunately this is not the case. I keep on getting the 1062 error:

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.

I tried restarting my server a number of times. This error doesn't always happen. For example, last week everything worked well for 1 day, then this morning (Monday) I got this error. All of my apps in the Default Website stop working and I see other errors in Event Viewer like EventID: 1309 with error:

Exception information:
Exception type: WebException
Exception message: The operation has timed out

Can anybody help with this? Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文