VSTO 4.0 此程序中的自定义功能将不起作用,因为找不到文件
VSTO 4.0 Customized functionality in this program will not work because files cannot be found
下面是其中一台用户计算机上的事件查看器记录的完整错误消息:
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 缓存在我的机器上复制这个场景,但我做不到。事实上发生的事情是当加载项启动时他的缓存被重建。
我想问的是,您是否知道发生这种情况的任何原因?我还提到该加载项在过去几个月中运行良好,并且没有对其进行任何更新。
如果 %localappdata%\assembly
文件夹和 %localappdata%\apps
文件夹中的文件被删除或损坏,并且如果添加的文件夹中缺少 .vsto 加载项安装文件,则会出现此错误消息-in 已安装。
实际发生的是,当 apps
文件夹被删除时,它会尝试从 AddIn 的安装路径中检索重建自身所需的信息。因此问题。
希望对大家也有帮助:)
下面是其中一台用户计算机上的事件查看器记录的完整错误消息:
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 缓存在我的机器上复制这个场景,但我做不到。事实上发生的事情是当加载项启动时他的缓存被重建。
我想问的是,您是否知道发生这种情况的任何原因?我还提到该加载项在过去几个月中运行良好,并且没有对其进行任何更新。
如果 %localappdata%\assembly
文件夹和 %localappdata%\apps
文件夹中的文件被删除或损坏,并且如果添加的文件夹中缺少 .vsto 加载项安装文件,则会出现此错误消息-in 已安装。
实际发生的是,当 apps
文件夹被删除时,它会尝试从 AddIn 的安装路径中检索重建自身所需的信息。因此问题。
希望对大家也有帮助:)