Can I have an MVC3 application in ~/priv/, and another in ~/pub?
It seems that if I first put an application in ~/priv/ then when I go to “XXX.XXXXX.com/” it serves the application in ~/priv. Can I solve this with routes? Is there something I am missing? Please help!
Edit:
To be clear, is there a way that the structure can look like:
[root]
[priv]
[pub]
so that if someone goes to root neither one is seen, if someone goes to root/priv they the priv app and if someone goes to root/pub they get the pub app.
You need to make sure of several things:
Check for the setting
runAllManagedModulesForAllRequests=true. If [root] is configured as an Application, it may be intercepting the call fro IIS before it gets to a child application. You may want to add the following to the web.config of [root] (but make sure to override this in [pub] and [priv]:Then, in web.config for [pub] and [priv] you can add: