Can ASP.Net 4.0 be configured as an auxiliary application / virtual directory of a root site using ASP.Net 2.0?

Can ASP.Net 4.0 and ASP.Net 2.0 / 3.0 / 3.5 coexist within the MOST WEBSITE / WEB PROJECT? I do not ask if they can coexist on the same server, and I know that they can.

The main site is ASP.Net 2.0. I know that we can configure the ASP.Net 3.5 application on the same site as the sub-application, since they use the same CLR. It's amazing if we can do the same by putting the ASP.Net 4.0 project / application as a Sub App / Virtual Directory under the ASP.Net 2.0 root site (so the sub application will have its own application pool, for example, in CLR 2.0, CLR 4.0, etc.).

Thank you very much in advance.

+5
source share
1 answer

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

<location path="." inheritInChildApplications="false">
<system.web>
 ...
</system.web>
</location>
+5
source

All Articles