Visual Studio 2010 RTM is not publishing with ClickOnce

只愿长相守 提交于 2019-11-29 23:41:59

Funnily enough, publish from right-click on the project menu seems to work. It fires up the wizard rather than just publishing, so not ideal, but I do have 2 workarounds now (including the one stated in my original post).

I asked the ClickOnce product lead about this, and he said it is a problem with DevExpress. They offer a solution here: http://www.devexpress.com/Support/Center/p/B156192.aspx

Little late for this comment, but I found this question because I was experiencing the same thing. Offering this here because the suggested work-arounds did not work for me.

My project builds and runs without error. I tried a build-clean, manually deleting the projects bin/ and obj/ folders, even using the Publish Wizard/Build-Menu->Publish. All would fail with the described "Cannot publish because a project failed to build."

Here's what made it work for me: I'm publishing to a UNC path, but the Installation Folder URL (on the project-setting's Publish tab,) was set to a URL that's exposed by IIS running on the server that also exposes the UNC path. I tried just setting the Installation Folder URL to the UNC path, and the ClickOnce build finally built and published. I don't get the web page, but we can live with that for now.

This is a bug in VS2010. I was able to publish 24 times without any problems. The 25th time refused to work, unless I did a right click on the project and published. I was getting the exact same error with no warnings. I have all the latest updates and did not change any settings in VS2010.

I was getting this error because my disk was near full. I moved 10GB to another drive, restarted Visual Studio.

The error still occurred if I click "Publish Now", but using Build >> Publish [ProjectName] worked normally.

user2427831

I faced the same problem. Before going to publish your project clean your code which will clean "bin\Debug" folder. Then publish your project and it will run correctly. Working fine with Visual Studio 2010, 2012, 2013.

RobinDotNet

I haave been using ClicKOnce successfully with VS2010 for several week.s

This is not a ClickOnce problem, it's a build problem. What is the rest of the error message, i.e. why can't the project build?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!