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

有帮助吗?

解决方案

Just create two application pools targeting each respective framework.

其他提示

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.

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. ;)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top