VS2012 Error when creating publish package: Except

2019-06-17 06:13发布

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.

5条回答
甜甜的少女心
2楼-- · 2019-06-17 06:47

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.

查看更多
在下西门庆
3楼-- · 2019-06-17 06:53

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

查看更多
爷的心禁止访问
4楼-- · 2019-06-17 06:53

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

查看更多
Bombasti
5楼-- · 2019-06-17 06:54

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.

查看更多
做个烂人
6楼-- · 2019-06-17 06:58

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.

查看更多
登录 后发表回答