I followed this article to make the pluggable asp.net mvc4 applicaton
But facing problem while deploying the application. In my solution MainProj is the main project, where as all the other projects are in the area folder. Each of the project have its model, view and controller. I have given references of all the sub projects (projects in area folder) in the MainProj. Now when trying to deploy MainProj, Its only publishing the main project with its views (in this case MainProj), the projects in the area folder are not deploying (ex: Cart, CRM). Even if I add references of the projects in area (ex CRM) in the main projects(MainProj), only the ddl of the projects in area(ex CRM) get deployed in bin folder, no views of the project in areas(CRM) getting deployed. Whats going wrong.
Here is the structure of solution:
Here is my original folder structure.
However when I run my project in debug mode within visual studio, the app is running perfectly fine. So I clicked on the iis express icon in the system tray at bottom of screen and observed that visual studio is hosting different sites for each project.
Somewhat similar answer found here but not working in my case. Please let me know what I am missing or doing wrong. What is the correct way to deploy such application. Thanks in advance.