Last post Jul 29, 2011 03:44 AM by xiecsuk
Jul 22, 2011 05:26 AM|xiecsuk|LINK
I have a website built using ASP.NET MVC3. I have used a nested masterpage (Winners.Master) which refers to Site.Master as the MasterPageFile. I then have two views that refer to Winners.Master as their MasterPageFile. Both master pages are in the Shared
When I use WebDeploy to publish the website, it is not including the nested masterpage (Winners.Master) when it publishes the Shared Directory. I am building to a file directory before using FileZilla to upload the files to my hosting service. I have to
include Winners.Master by copying from the code directory.
Anybody know any reasons why?
Jul 26, 2011 09:48 AM|XiaoCheng Fan - MSFT|LINK
As your using MVC3 project, can you try to use a MVC3 View Master Page instead of a nested masterpage?
As far as I've tested, a nested master page in shared folder of MVC3 project can be published through WebDeploy.
Can you check the file proper of related files?
I'm looking for ward for your reply.
Jul 29, 2011 03:44 AM|xiecsuk|LINK
I don't quite understand what you are asking me to do. I already have a main Masterpage on which I have inserted another masterpage in the mainContent area. Both master pages were in the default Shared folder. Everything worked very well when I ran it. The
only problem was that it did not copy the nested master page to the directory in the file system into which I was building the site. I had to copy in by hand before I could transfer it to my hosting service.