How to set up an ASP.NET MVC 3 sub-application in

2019-06-13 16:32发布

问题:

I try set up an MVC 3 sup-application on IIS 7. Root app is a MVC 3 application too.

So, my root app runs on www.mysite.com - sub-app must be www.myapp.com/subapp

I think the problem is in web.config...

回答1:

The application and sub application have to be running on the same version of .NET.

In addition, there is a parent/child relationship with the web.configs - so the child application will inherit the parents web.config unless told not to do so using 'inheritInChildApplications' in the configs.