We are in the process of a website redesign, and we'd like to transition over to MVC. It's a very large website, and our current situation is we have a root project, then we have sub-projects nested inside it for each of our departments. This way each department can be recompiled separately. Using virtual directories in IIS, we are also able to have a single Master Page in the root project, which all the other projects use (all our pages are currently ASPX). The downside to this virtual directory solution is that the root master page is not available to the sub-projects when debugging them. We'd like to switch to MVC, and hopefully MVC can solve this issue.
For the new website, I have created an MVC project that will serve as the root project. I have a shared layout all ready to go, but I'm having a couple of big problems:
- I can't figure out a workable way to create nested MVC projects for each department. I have tried a number of different ways, but I always end up with a 403 error. I was able to create Areas within the root project and this worked, but this will not allow us to recompile individual Areas, which is a must, as our site is simply too large.
- How to share the layout in the root with all the department projects (even during debugging) without relying on IIS virtual directories. I tried using Razor Generator, but it seems a little too complicated for me, and I could never get anything to work, or even figure out if it is capable of doing what I need.
Any advice would be much appreciated. MVC for .Net seems pretty useless for large sites if there is no way to separate sections into other projects that can be compiled individually.
