我正在使用C#和VSTO爲Visual Studio 2013中的Excel開發插件(功能區)。 到目前爲止,這麼好。現在,我想創建一個安裝程序。我正在使用適用於Visual Studio的InstallShield限制版。我按照這裏給出的指示http://msdn.microsoft.com/en-us/library/cc442767.aspx(按用戶安裝,應用程序級別加載項)。Excel VSTO插件部署錯誤
編譯和設置工作沒有任何問題。然而,當我打開Excel中,我得到這樣的警告:
Name:
From: file:///C:/Program Files (x86)/DCDB/ExcelInterface.vsto
************** Exception Text **************
Microsoft.VisualStudio.Tools.Applications.Deployment.InstallAddInFailedException: The customization cannot be run because
the solution ID in the document does not match the customization. Contact your administrator for further assistance.
at Microsoft.VisualStudio.Tools.Office.Runtime.OfficeAddInDeploymentManager.RefreshCustomization(Customization cust,
AddIManifestsDownloadedArgs args)
at
Microsoft.VisualStudio.Tools.Office.Runtime.OfficeAddInDeploymentManager.OnAddInManifestsDownloaded(AddInManifestsDownloade
dArgs args)
at
Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.RaiseOnAddInManifestsDownloadedEvent(I
ClickOnceAddInInstaller addInInstaller, Uri deploymentManifestUri, AddInInstallationStatus addinSolutionState, String
productName, String deploymentManifestXml, String applicationManifestXml, String hostManifestXml, String logFilePath,
String version, Uri supportUri)
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn()
at Microsoft.VisualStudio.Tools.Office.Runtime.SolutionInstaller.<>c__DisplayClass7. <Install>b__0()
我一直在尋找在網絡上並沒有答案,只有問題。 我無法理解錯誤消息的性質。有任何想法嗎?
你有沒有解決這個問題?我遇到同樣的問題,但我的文檔級加載項。 – KSK