Search code examples
asp.net-mvc-3visual-studio-2012web-deployment-project

Web Deploy Package Error 'File ... does not exist'


I've trying to package up and old MVC 3 project to send it out but I keep getting a strange error where it telling me

'The file '/Views/Shared/print.Master' does not exist. /Views/Questionnaire/View.aspx'

But I can clearly see the file and have renamed it to try and fix it but no luck, then I tried changing the package settings to include everything but that too didn't fix it so does anybody have any idea why this could be happening? (btw it's a 2nd master file)

Any ideas or help would be much appreciated.


Solution

  • Solution was to check file Properties and set 'Build Action' to 'Content'.