Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Web Deploy not publishing all Files

Tags:

iis-7

When I publish my ASP.net MVC 3.0 Application to IIS 7 using Visual Studio Web Deploy settings one Partial View File is not updated.

Is it possible to debug why it failed for one particular file?

like image 685
HaBo Avatar asked Dec 20 '11 19:12

HaBo


People also ask

How do I change publish settings in Visual Studio?

On the computer where you have the ASP.NET project open in Visual Studio, right-click the project in Solution Explorer, and choose Publish. If you have previously configured any publishing profiles, the Publish pane appears. Click New or Create new profile. Select the option to import a profile.

How do I know if web deploy is running?

Is Web Deploy installed? You can verify web deploy is installed by going to the "Programs and Features" control panel and looking for "Microsoft Web Deploy 2.0" in the list of installed programs. If it is not there, you can install it via the Web Platform Installer by going to the "Products" tab.

How do I publish a web deployment package?

To configure settings on the Connection tabIn the Publish method drop-down list, select Web Deploy Package. In the Package location box, enter the path to where you want the package to be created, including the . zip file name; for example, c:\temp\<projectname>. zip.

How do I publish a Visual Studio project to my website?

Get started. In Solution Explorer, right-click your project and choose Publish. If you're publishing this web app for the first time, next you see the Publish wizard. Visual Studio filters the list of destinations depending on the type of web app.


1 Answers

Select the view that is not publishing to server,
go to properties (click F4) of the view
under properties
check the properties set for it:

  1. Build Action : this should be Content
  2. Copy to Output Directory: this should be like the other file are configured (I believe it should be Do not copy)

Then publish it.

like image 157
HaBo Avatar answered Oct 10 '22 07:10

HaBo