我创建了两个加载项,一个是共享的插件(用于Excel,Word和Outlook)中,另一种是用于Outlook。
I've created two addins, one is shared addin (for Excel, Word and Outlook) and another one is for Outlook.
他们做工精细我的机器上(在这里我开发的话)。
They work fine on my machine (where I developed it).
使用框架:4.0
我创建了一个安装项目throught VS2010以下步骤 使用Windows安装程序部署Office解决方案。
I've created a 'setup project' throught VS2010 following steps in Deploying an Office Solution by Using Windows Installer.
当我运行安装程序的话,共享插件运行良好。但后市插件无法正常工作。
When I run setup of it, shared addin runs fine. But the outlook addin does not work.
这是日志事件查看器
Event Type: Error
Event Source: VSTO 4.0
Event Category: None
Event ID: 4096
Date: 4/26/2011
Time: 7:37:52 PM
User: N/A
Computer: XXX
Description:
Customization URI: file:///C:/Program Files/XXXX/XXXX/XXXX.vsto
Exception:
的**的 * 的**的 异常文本 的**的 * **** Microsoft.VisualStudio.Tools.Applications.Deployment.FrameworkVersionMismatchException: 在Microsoft.VisualStudio.Tools.Office.Runtime.SolutionInstaller.Install(ClickOnceAddInDeploymentManager clickOnceAddInDeploymentManager,OfficeAddInDeploymentManager officeDeploymentManager,AddInInformation和放大器;信息) 在Microsoft.VisualStudio.Tools.Office.Runtime.SolutionInstaller.ProcessInstallerOperation(ClickOnceAddInDeploymentManager clickOnceAddInDeploymentManager,OfficeAddInDeploymentManager officeAddInDeploymentManager,AddInInformation和放大器;信息) 在Microsoft.VisualStudio.Tools.Office.Runtime.SolutionInstaller.ProcessInstallerOperation(ClickOnceAddInDeploymentManager clickOnceAddInDeploymentManager,OfficeAddInDeploymentManager officeAddInDeploymentManager,布尔showUIDuringDeployment) 在Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.CreateCustomizationDomainInternal(字符串solutionLocation,字符串manifestName,字符串documentName,布尔showUIDuringDeployment,IntPtr的hostServiceProvider,IntPtr的&放大器;执行人)
***** Exception Text ******* Microsoft.VisualStudio.Tools.Applications.Deployment.FrameworkVersionMismatchException: at Microsoft.VisualStudio.Tools.Office.Runtime.SolutionInstaller.Install(ClickOnceAddInDeploymentManager clickOnceAddInDeploymentManager, OfficeAddInDeploymentManager officeDeploymentManager, AddInInformation& info) at Microsoft.VisualStudio.Tools.Office.Runtime.SolutionInstaller.ProcessInstallerOperation(ClickOnceAddInDeploymentManager clickOnceAddInDeploymentManager, OfficeAddInDeploymentManager officeAddInDeploymentManager, AddInInformation& info) at Microsoft.VisualStudio.Tools.Office.Runtime.SolutionInstaller.ProcessInstallerOperation(ClickOnceAddInDeploymentManager clickOnceAddInDeploymentManager, OfficeAddInDeploymentManager officeAddInDeploymentManager, Boolean showUIDuringDeployment) at Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.CreateCustomizationDomainInternal(String solutionLocation, String manifestName, String documentName, Boolean showUIDuringDeployment, IntPtr hostServiceProvider, IntPtr& executor)
的**的 * 的**的 加载的程序集 的**的 * **** mscorlib程序 大会版本:2.0.0.0 Win32版本:2.0.50727.3620(GDR.050727-3600)
***** Loaded Assemblies ******* mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3620 (GDR.050727-3600)
Microsoft.VisualStudio.Tools.Office.Runtime.v10.0 大会版本:10.0.0.0 Win32版本:10.0.21022.1
Microsoft.VisualStudio.Tools.Office.Runtime.v10.0 Assembly Version: 10.0.0.0 Win32 Version: 10.0.21022.1
系统 大会版本:2.0.0.0 Win32版本:2.0.50727.3614(GDR.050727-3600)
System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3614 (GDR.050727-3600)
System.Core程序 大会版本:3.5.0.0 Win32版本:3.5.30729.1通过内置:SP
System.Core Assembly Version: 3.5.0.0 Win32 Version: 3.5.30729.1 built by: SP
System.AddIn 大会版本:3.5.0.0 Win32版本:3.5.30729.1通过内置:SP
System.AddIn Assembly Version: 3.5.0.0 Win32 Version: 3.5.30729.1 built by: SP
Microsoft.VisualStudio.Tools.Applications.Hosting.v10.0 大会版本:10.0.0.0 Win32版本:10.0.21022.1
Microsoft.VisualStudio.Tools.Applications.Hosting.v10.0 Assembly Version: 10.0.0.0 Win32 Version: 10.0.21022.1
Microsoft.VisualStudio.Tools.Applications.Runtime.v10.0 大会版本:10.0.0.0 Win32版本:10.0.21022.1
Microsoft.VisualStudio.Tools.Applications.Runtime.v10.0 Assembly Version: 10.0.0.0 Win32 Version: 10.0.21022.1
Microsoft.VisualStudio.Tools.Applications.ServerDocument.v10.0 大会版本:10.0.0.0 Win32版本:10.0.21022.1
Microsoft.VisualStudio.Tools.Applications.ServerDocument.v10.0 Assembly Version: 10.0.0.0 Win32 Version: 10.0.21022.1
Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0 大会版本:9.0.0.0 Win32版本:9.0.30729.4130
Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0 Assembly Version: 9.0.0.0 Win32 Version: 9.0.30729.4130
System.Windows.Forms的 大会版本:2.0.0.0 Win32版本:2.0.50727.3053(netfxsp.050727-3000)
System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
System.Drawing中 大会版本:2.0.0.0 Win32版本:2.0.50727.3053(netfxsp.050727-3000)
System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
System.Deployment 大会版本:2.0.0.0 Win32版本:2.0.50727.3053(netfxsp.050727-3000)
System.Deployment Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
System.Configuration 大会版本:2.0.0.0 Win32版本:2.0.50727.3053(netfxsp.050727-3000)
System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
的System.Xml 大会版本:2.0.0.0 Win32版本:2.0.50727.3082(QFE.050727-3000)
System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
System.Security程序 大会版本:2.0.0.0 Win32版本:2.0.50727.3613(GDR.050727-3600)
System.Security Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.3613 (GDR.050727-3600)
有关详细信息,请参阅帮助和支持中心 http://go.microsoft.com/ fwlink / events.asp 。
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
据我了解,它甚至没有考虑与框架4.0加载插件
From what I understand, it is not even considering loading addin with framework 4.0
谁能告诉我哪里做错了,并提出解决方案。
Can anyone tell me where I have done wrong and suggest a solution.
感谢您
阿达什讷
找到解决方案...
搜寻了一段时间后,发现了一个链接的 Office解决方案prerequisites进行部署和的 Visual Studio工具办公室运行时安装方案的。安装VSTO 4.0解决了这个问题。
After searching a while found a links to Office Solution Prerequisites for Deployment and Visual Studio Tools for Office Runtime Installation Scenarios. Installing VSTO 4.0 solved the problem.
然后得到了新的问题...
Then got new problem ...
System.Deployment.Application.InvalidDeploymentException:参考清单中不匹配的下载组件XXX.dll的身份。
System.Deployment.Application.InvalidDeploymentException: Reference in the manifest does not match the identity of the downloaded assembly XXX.dll.
这签署组装后得到有效解决。
which got solved after signing the assembly.
上一篇:(安卓)获取周的第一天