下面是用户计算机上的事件查看器记录的完整错误消息:
Customization URI: file://appdkba1456/a/
Exception: Customized functionality in this program will not work because one or more of the files for the following customization cannot be found: nameOfTheAddin. Uninstall the customization from the Add or Remove Programs dialog box in Control Panel, and then install the customization from the following location: file://appdkba1456/a/nameOfTheAddin.vsto.
************** Exception Text **************
Microsoft.VisualStudio.Tools.Applications.Deployment.OfflineAddInFailedException: Customized functionality in this program will not work because one or more of the files for the following customization cannot be found: nameOfTheAddin. Uninstall the customization from the Add or Remove Programs dialog box in Control Panel, and then install the customization from the following location: file://appdkba1456/a/nameOfTheAddIn.vsto. ---> System.IO.FileNotFoundException: The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
到目前为止,我能够找到here,当ClickOnce缓存中没有解决方案时,会引发OfflineAddInFailedException
。然后我尝试通过删除ClickOnce缓存来复制我的机器上的场景,但我不能。实际上发生的事情是,当加载项开始时,他的缓存是重建的。
我想问的是,如果您知道为什么会发生这种情况的原因?我还提到加载项在过去几个月中运行良好,并且没有对其进行更新。
答案 0 :(得分:0)
如果%localappdata%\assembly
文件夹和%localappdata%\apps
文件夹中的文件被删除或损坏,并且加载项所在的文件夹中缺少.vsto加载项安装文件,则会出现此错误消息安装。
实际发生的情况是,当apps
文件夹被删除时,它将尝试从AddIn的安装路径中检索重建自身所需的信息。因此这个问题。
我希望它也会帮助你们:)