Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

asp.net

Can ASP.Net 4.0 and ASP.Net 2.0/3.0/3.5 coexist under the SAME WEBSITE/WEB PROJECT? I'm not asking 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.

like image 527
hssh Avatar asked Oct 05 '10 20:10

hssh


1 Answers

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>
like image 90
Sergey Avatar answered Sep 30 '22 01:09

Sergey