"Publish failed" in Visual Studio 2008

Jul 15, 2010 Posted by Lara Kannan

I was publishing a website today, and received an error message in the status bar indicating 'Publish failed. This was the only info I got, and couldn’t figure out what had happened as I had published successfully just minutes prior.

It turns out that there was an image that got included in my .csproj project file that had been deleted, and there was an error trying to locate it.

If you look in the output window (ctrl + alt + o) you will get a detailed list of any errors that occurred in the publishing process. I simply had to remove the image from the project file (as it didn’t exist any more anyway) and everything worked.

Share

Post a Comment