當試圖發佈VS2012中的應用程序(特別是WCF服務)時,出現錯誤消息:「執行發佈時出現異常:拒絕訪問路徑[path]。 「引用的文件是我試圖執行的發佈配置文件,並鍵入「.pubxml」VS2012:執行發佈時拒絕訪問路徑發佈
我已經使用SysInternals Process Explorer來檢查另一個進程是否有文件鎖定,我已關閉VS2012並重新打開它管理員權限,並重新啓動我的電腦。
這與此處所述的問題相同:VS2012 Error when creating publish package: Exception in Executing Publishing Access to path is denied我寧願對該問題發表評論,詢問他是否曾找到解決方案,但很遺憾,我還沒有評論權限。
EDIT ------
我使用Visual Studio 2012旗艦版與更新2(11.0.60315.01更新2)
你不用VS2012RC做什麼? http://connect.microsoft.com/VisualStudio/feedback/details/747721/vs-2012-crashing-when-trying-to-run-publish – Drop 2013-05-13 18:40:37
你也可以試試'Unlocker' http://www.emptyloop.com/unlocker /找出這個文件是否被鎖定,或者是一些其他的錯誤。 – Drop 2013-05-13 18:41:37
我已將視覺工作室版本信息添加到問題中。關於Unlocker,它看起來像檢查SysInternals的Process Explorer檢查的東西。 – Chris 2013-05-13 18:47:24