尝试在Windows 10计算机上安装我在Visual Studio 2015中制作的Microsoft Word VSTO Addin时遇到错误。
我在域服务器上,但我无法访问错误消息指定的路径。有没有办法将路径改为不同的路径?
完整错误文字:
Name: <Name of Application>
From: file:///E:/<Name of Application>/<Name of Application>.vsto
************** Exception Text **************
System.Deployment.Application.DeploymentDownloadException: Downloading file:///E:/<Name of Application>/Application Files/<Name of Application>_1_0_0_1/<Name of Application>.dll.deploy did not succeed. ---> System.UnauthorizedAccessException: Access to the path 'C:\Users\*********\AppData\Local\Temp\Deployment\Y3Q7BGZC.PJH\WH8KGN6M.K6H\<Name of Application>.dll' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.DownloadAddIn(TimeSpan timeout)
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()