在 iis 6 上使用 .net 4 和 .net 2 时出现“服务器应用程序不可用”错误

发布于 2025-01-01 01:40:14 字数 229 浏览 5 评论 0原文

我正在使用一个在 .net 2 上运行的非常旧的网站,但我添加了一个在 .net 4 上运行的 MVC 3 的附加内容,在原始网站下创建为虚拟目录。

问题是,如果我使用其中一个框架得到“服务器应用程序不可用”,我可以为该框架运行 aspnet_regiis 并修复它,但随后它使另一个框架给出此错误

我修复了一个它破坏了另一个

有什么办法围绕这个

我需要尽快,客户正在紧张我的脖子

I am using a really old website running on .net 2 but I am adding an addition to it that is MVC 3 running on .net 4, created as a virtual directory under the original website.

The problem is that if I get the "Server Application Unavailable" with one of the frameworks I can run aspnet_regiis for that framework and it fixes it but then it make the other framework give this error

I fix one it breaks the other

is there any way around this

I need this asap, client is breathing down my neck

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

此生挚爱伱 2025-01-08 01:40:14

只需创建两个针对每个框架的应用程序池。

Just create two application pools targeting each respective framework.

美人如玉 2025-01-08 01:40:14

IIS 不支持在单个应用程序池中运行多个.Net 框架。如果某个应用程序需要与同一应用程序池中的其他应用程序不同的框架版本,则必须将其放置在新的应用程序池中。

您需要为每个框架版本使用不同的应用程序池。

IIS does not support running multiple .Net frameworks within a single application pool. If an application requires a different framework version than other applications in the same application pool, it must be placed in a new application pool.

You need to use different Application pools for each of the framework versions.

相思碎 2025-01-08 01:40:14

您有三个选择:

  1. 将现有站点升级到 .net 4。
    这可能需要大量工作..也可能不需要。

  2. 从你的“添加”开始。
    这次使用与网站内置相同的技术。在不知道您的添加内容有多复杂的情况下,这可能比#1更容易。

  3. 专门为您的 4.0 网站创建一个新的应用程序池。
    此项目有一个警告,您不会在两者之间共享会话数据。但可能是最方便的。鉴于您现在才发现问题,我猜测添加的内容实际上并没有那么紧密集成,因此您可能会没事。

无论哪种方式,我希望您从中吸取的教训是,在现有网站上使用新的小饰品可能不是最好的方法。 ;)

You have three choices:

  1. Upgrade the existing site to .net 4.
    This might be a lot of work.. or it might not.

  2. Start over with your "additions".
    This time using the same tech as the site is built in. Without knowing how involved your additions were, this might be easier than #1.

  3. Create a new app pool just for your 4.0 site.
    This item has the caveat that you aren't going to be sharing session data between the two. But may be the most expedient. Given that you are just now finding the problem I'm going to guess that the addition really isn't that tightly integrated and so you'll probably be just fine.

Either way I hope the lesson you take from this is that using new trinkets on an existing site is probably not the best way to go. ;)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文