Last post Oct 20, 2014 11:13 PM by jloper
Aug 28, 2014 01:30 PM|jloper|LINK
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 [<pages pageBaseType="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?
Aug 29, 2014 04:54 AM|Starain chen - MSFT|LINK
Based on my tests, I cannot reproduce your scene. The View folder will be deployed. (The view pages properties are: “Do not Copy”, “Content”.)
For the precompile during publishing option of Asp.net MVC app:
Please try to create a new project and try again.
On the other hand, please try to repair your VS and try again.
Sep 19, 2014 11:00 AM|jloper|LINK
Just an FYI: Over the past couple of weeks, I have tried upgrading to VS 2013 Update3, and the views are still not copied. I tried to uninstall and reinstall VS2013 all together. The publish process still does not copy the views.
Oct 20, 2014 11:13 PM|jloper|LINK
I have just one file in the views folder that is publishing. It is an html file. None of the cshtml files are publishing.
What tell VS 2013 to publish these files? We are about ready to deploy this app and I need to get the deployment working.