I am using VS 2013 Update 2. I have built an MVC 5 application. I am trying to deploy the application to a local IIS server. In the publish options, I have tried all the combination of the following:
Precompile during publishing [Yes and No]
Allow precompiled site to be updated [Yes and No]
Merge [I have tried Do not merge, and Merge each individual folder output].
In all cases, the build and publish is successful, however, when the application runs, none of the MVC Views can be found. I have checked individual view files and all are marked as 'Content', and 'Do Not Copy'. I have changed the 'Do not Copy'
to 'Copy Always' and also tried 'Copy when Updated'. In all of these cases, the View files are not copied to the IIS server.
We manually copied the contents of the Views folder to the IIS server and the application works correctly and all views are located.
This seems to be a deployment / publish issue.
The only thing unusual about our MVC application is the we have overridden the base class for all views. This was done via Views\App.Config [<pagespageBaseType="CBT.SOE.UI.SoeWebViewPage">]
We have the workaround of manually copying all of the views, but we would like to find a resolution as to why the publish process refuses to deploy [or find] our views.
Where are the deployed views?
What can we do to force the publish process to copy the views?
Thanks,
jpl