简体   繁体   English

Outlook Addin错误:未加载。 加载COM加载项期间发生运行时错误

[英]Outlook Addin Error: Not loaded. A runtime error occurred during loading of COM add-in

I have created an VSTO Outlook addin. 我创建了一个VSTO Outlook插件。 The configuration is as follows: 配置如下:

  • Visual Studio 2008 Visual Studio 2008
  • Office 2007 Outlook add in (3.5 Framework) Office 2007 Outlook添加(3.5框架)
  • MSI created using Visual Studio Setup Project MSI使用Visual Studio安装项目创建
  • Deployed to Office 2010 under windows 7 在Windows 7下部署到Office 2010

It works fine on the Dev PC however it fails to load once installed on the test machine. 它在Dev PC上工作正常但是一旦安装在测试机器上就无法加载。 The outlook addin window shows a "Not loaded. A runtime error occurred during loading of COM add-in" outlook addin窗口显示"Not loaded. A runtime error occurred during loading of COM add-in"

It is my understanding that I should not need to install any PIA as the Office 2007 PIA are part of Office 2010. 我的理解是,我不需要安装任何PIA,因为Office 2007 PIA是Office 2010的一部分。

So far I have tried the following: 到目前为止,我尝试了以下内容:

  • set VSTO_SUPPRESSDISPLAYALERTS however it does not show any messages when it tries to start. 设置VSTO_SUPPRESSDISPLAYALERTS但是它在尝试启动时不显示任何消息。
  • configured Fuslogvw.exe (Assembly Binding Log Viewer) however it is not showing any binding errors. 配置Fuslogvw.exe (程序集绑定日志查看器)但它没有显示任何绑定错误。
  • set VTSO_LOGALERTS and it is logging all alerts however as none are shown this has not helped. 设置VTSO_LOGALERTS并记录所有警报但是没有显示这没有帮助。

Is there anything I am doing wrong or need to do in addition to make this work? 除了让这个工作之外,我还有什么不对或需要做的吗?

Make sure you have the VSTO 3.0 Runtime installed on the test machine. 确保在测试计算机上安装了VSTO 3.0 Runtime

You will also need to install the VSTO 3.0 Runtime Service Pack 1 if you are running Visual Studio 2008 Service Pack 1. 如果您运行的是Visual Studio 2008 Service Pack 1,则还需要安装VSTO 3.0 Runtime Service Pack 1。

VSTO 4.0 Runtime is not required in your situation because it is used with add-ins created with Visual Studio 2010. Please note that the version of VSTO and runtime generally must agree with the version of Visual Studio used to create the add-in. 在您的情况下不需要VSTO 4.0运行时 ,因为它与使用Visual Studio 2010创建的加载项一起使用。请注意,VSTO和运行时的版本通常必须与用于创建加载项的Visual Studio版本一致。

ere are a couple of usefull sites (I'm not going to copy and paste their advice on troubleshooting) http://www.ceptara.com/node/183 有几个有用的网站(我不打算复制并粘贴他们的故障排除建议) http://www.ceptara.com/node/183

http://blogs.msdn.com/b/vsod/archive/2008/04/22/troubleshooting-com-add-in-load-failures.aspx http://blogs.msdn.com/b/vsod/archive/2008/04/22/troubleshooting-com-add-in-load-failures.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM