开发者

Can ASP.Net 4.0 Set up as a sub application/Virtual Directory of a root site which is using ASP.Net 2.0?

开发者 https://www.devze.com 2023-01-18 17:09 出处:网络
Can ASP.Net 4.0 and ASP.Net 2.0/3.0/3.5 coexist under the SAME WEBSITE/WEB PROJECT? I\'m not as开发者_StackOverflow社区king if they can coexist on the same server, which I know they can.

Can ASP.Net 4.0 and ASP.Net 2.0/3.0/3.5 coexist under the SAME WEBSITE/WEB PROJECT? I'm not as开发者_StackOverflow社区king if they can coexist on the same server, which I know they can.

The base site is ASP.Net 2.0. I know we can set up ASP.Net 3.5 application under the same site as a sub application since they are using the same CLR. Wondering if we can do the same by putting ASP.Net 4.0 project/application as a Sub App/Virtual Directory under the ASP.Net 2.0 root site (so the sub app will have their own application pool, eg, under CLR 2.0, CLR 4.0 etc).

Many thanks in advance.


Yes it will work, the only thing you would need to modify your web.config in the parent directory and add attribute inheritInChildApplications="false".

<location path="." inheritInChildApplications="false">
<system.web>
 ...
</system.web>
</location>
0

精彩评论

暂无评论...
验证码 换一张
取 消