I am deploying an ASP.NET MVC3 project to a windows 2008 r2 server using Visual Studio 2010 Web Deployment tool.
Everything appears to work correctly when browsing my top level site but when I browse to views inside an Area in the website the Area's local layout style is missing.
Looking on the server I can see that the Area’s shared layout file has been deployed to the folder <site>/<area>/views/shared
but the Area’s _ViewStart.cshtml
is missing from folder <site>/<area>/views/
. Presumably as this file specifies where my layout view is sourced that this is my problem.
So question is any ideas as to what I am doing wrong/missing in the deployment stage for this file to be ignored?
Sometimes the "Build Action" of a file gets changed from "Content" to something else. When this happens, the deploy process either embeds (in the bin folder) the files or performs some other action (like ignoring).
To check/fix the issue:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With