简体   繁体   中英

Can I Host .NET 2.0 Running Web Application with .NET 4.0 App Pool

Can I Host .NET 2.0 Running web Application with .NET 4.0 App Pool..??

I have added the following node in the Web.config of my Web Application :

<startup>
    <supportedRuntime version="v2.0.50727"/>
</startup>

This means that my application runs using .NET 2.0 CLR.

I added it to an Application in ISS with App Pool set to .NET 4.0 and did a quick smoke test. Its working fine for normal cases.

Refer the image below. The name of the application is LMSInterface.

在此处输入图片说明

Will it run seamlessly..?? Or are there any hidden complexities / issues in doing so..??

It could be done:

Project framework 2.0 can run in IIS with Application pool 4.0

Here's my Test:

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM