VS2012 Error when creating publish package: Exception in Executing Publishing Access to path is denied

僤鯓⒐⒋嵵緔 提交于 2019-12-23 08:47:04

问题


I am trying to publish an application with VS2012 and when i try and make the package i get an error that access to the path is denied. I have checked and my user has full control and verified the path.

VS is trying to access .pubmxl file that is there.

I have also tried running VS2012 as administrator.


回答1:


I had this same issue (VS2012: Access to path is denied when executing publish) and found a way to allow Visual Studio access to the file.

If you open the pubxml file in Visual Studio, make an edit, and save the file, Visual Studio is able to successfully publish using that file. Hope this works for you too.




回答2:


Creating a new profile worked for me. I got this error when I tried to change the path of an existing profile, and Unfortunately I could not find the original pubxml file, otherwise I would have simply copied it to the new location and followed advice #1 (edit the file in location from VS2012). It's easy enough to create a new profile as there aren't many settings anyway.




回答3:


I have experienced this issue and I noticed that the files were "Read-Only". Selecting the files and removing the "Read-Only" attribute allowed me to Publish successfully.




回答4:


Sounds like TFS feature rocks again. Remove publish profile from local repo and get latest version afterwards, then you should be fine.




回答5:


I had the same problem and fixed it by removing my Publish profile and creating a new one.



来源:https://stackoverflow.com/questions/15951164/vs2012-error-when-creating-publish-package-exception-in-executing-publishing-ac

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