加载COM加载项期间的运行时错误 [英] runtime error during the loading of the COM add-in

查看:3554
本文介绍了加载COM加载项期间的运行时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道发生了什么......

我在VS 2003中使用了Office 2007的加载项,并且导入了

整个然后我在开发者快车(devexpress.com)的项目中添加了一些自定义的.Net组件



我现在有一个相当长的参考列表:可访问性,一堆

DevExpress组件,可扩展性,Microsoft.Office.Core,

Microsoft.Interop。*(所有功能区应用程序),stdole,System,

System.Drawing,System.Windows.Forms,System.XML。安装程序是由VS 2005生成的安装程序。

加载项在我的开发机器上工作正常。但是当我将它安装在另一台机器上时,它会在运行时出现错误,因为在加载COM加载项时会出现运行时错误(这就是com的内容)加载项对话框说)。

我在Excel,PPT和Word中尝试过它。我尝试在

Connect和OnConnection事件中显示一个消息框,但它们没有出现。所以我认为它甚至在进入这些方法之前就已经崩溃了,但是我已经知道它不知道它到底是什么。

有什么建议吗?


谢谢,


Patrick Schmid

I have no idea what is going on...
I took an add-in for Office 2007 that I started in VS 2003, and imported
the whole thing into VS 2005. Then I added some custom .Net components
from Developer Express (devexpress.com) to the project.
I have a rather long list of references now: Accessibility, a bunch of
DevExpress components, Extensibility, Microsoft.Office.Core,
Microsoft.Interop.* (all ribbon app ones), stdole, System,
System.Drawing, System.Windows.Forms, System.XML. The setup program is
the one generated by VS 2005.
The add-in works fine on my development machine. But the moment I
install it on a different machine, it fails with a runtime error during
the loading of the COM add-in (that''s what the com add-ins dialog says).
I tried it in Excel, PPT and Word. I tried displaying a message box in
the Connect and OnConnection events, but they didn''t appear. So I am
thinking it crashes before it even gets into those methods, but I have
no idea what the heck it could be.
Any suggestions?

Thanks,

Patrick Schmid

推荐答案



因为我在某些类似的区域中包含某个pb,你有没有尝试过一个

融合日志查看器外观?
$ b b b bw,你知道是什么让Excel启动框架2.0

或1.1?


我目前的pb:
< a rel =nofollowhref =http://groups-beta.google.com/group/microsoft.public.dotnet.general/browse_thread/thread/580a728b23d0561a/d1a3185aeaafc96b#d1a3185aeaafc96b\"target =_ blank> http:/ /groups-beta.google.com/group/...a3185aeaafc96b

10月25日下午12:37,Patrick Schmid [MVP]" < pdsch ... @nospam.mvps.org>

写道:

As I am encoutering pb in some similar areas, have you tried to have a
fusion log viewer look of it ?
btw, have you an idea of what makes a Excel initiate the framework 2.0
or 1.1 ?

my current pb :
http://groups-beta.google.com/group/...a3185aeaafc96b
On Oct 25, 12:37 pm, "Patrick Schmid [MVP]" <pdsch...@nospam.mvps.org>
wrote:

我不知道发生了什么......

我在VS 2003中使用了Office 2007的加载项,并将整个内容导入VS 2005.然后我添加了一些自定义.Net组件<从开发者快车(devexpress.com)到项目的


我现在有一个相当长的参考列表:辅助功能,一堆

DevExpress组件,可扩展性,Microsoft.Office.Core,

Microsoft.Interop。*(所有功能区应用程序),stdole,系统,

System.Drawing,System.Windows .Forms,System.XML。安装程序是由VS 2005生成的安装程序。

加载项在我的开发机器上工作正常。但是当我将它安装在另一台机器上时,它会在运行时出现错误,因为在加载COM加载项时会出现运行时错误(这就是com的内容)加载项对话框说)。

我在Excel,PPT和Word中尝试过它。我尝试在

Connect和OnConnection事件中显示一个消息框,但它们没有出现。所以我认为它甚至在进入这些方法之前就已经崩溃了,但是我已经知道它不知道它到底是什么。

有什么建议吗?


谢谢,


Patrick Schmid
I have no idea what is going on...
I took an add-in for Office 2007 that I started in VS 2003, and imported
the whole thing into VS 2005. Then I added some custom .Net components
from Developer Express (devexpress.com) to the project.
I have a rather long list of references now: Accessibility, a bunch of
DevExpress components, Extensibility, Microsoft.Office.Core,
Microsoft.Interop.* (all ribbon app ones), stdole, System,
System.Drawing, System.Windows.Forms, System.XML. The setup program is
the one generated by VS 2005.
The add-in works fine on my development machine. But the moment I
install it on a different machine, it fails with a runtime error during
the loading of the COM add-in (that''s what the com add-ins dialog says).
I tried it in Excel, PPT and Word. I tried displaying a message box in
the Connect and OnConnection events, but they didn''t appear. So I am
thinking it crashes before it even gets into those methods, but I have
no idea what the heck it could be.
Any suggestions?

Thanks,

Patrick Schmid


Patrick,


如果我理解你正确的2003版它的工作正常,

没有任何开发组件。


首先,我会简单地删除组件,看看2005版本的

加载项的工作方式与2003年相同。


其次,我会在开发机器上进行干净安装,以确定它是否正常工作。毕竟,从IDE运行它可能并不总是发现问题。


我发现跟踪.NET问题然后更难

经典COM所以根据我自己的经验,我编写了一篇关于

故障排除的文章。这是不完整的,永远不可能......
http://www.excelkb.com/article.aspx?id=10206

根据我的经验''shimmed''COM加载项似乎然后问题就更少了。

''未经过模仿''但这并不是必要的,因为看起来它与使用中的组件有关。




---------------

亲切的问候,

Dennis

每周博客.NET& Excel: http://xldennis.wordpress.com/

我的英文网站: http://www.excelkb.com/default.aspx

我的瑞典网站: http://www.xldennis.com /
Patrick,

If I understand You correctly the 2003 version of it worked as expected and
without any dev components.

At first I would simple remove the components and see if the 2005 version
add-in work in the same way as the 2003 do.

Second, I would make a clean installation of it on the developing machine to
see if it work properly. After all, running it from the IDE may not always
uncover the issues.

I find it more difficult to track down issues with the .NET then with the
classic COM so based on my own experience I''ve compiled an article about
troubleshooting. It''s not complete and it will never be possible...
http://www.excelkb.com/article.aspx?id=10206

In my experience ''shimmed'' COM Add-ins appear to have less issues then
''unshimmed'' but it''s not necessary the case here as it looks like it related
to the components in use.

---------------
With kind regards,
Dennis
Weekly Blog .NET & Excel: http://xldennis.wordpress.com/
My English site: http://www.excelkb.com/default.aspx
My Swedish site: http://www.xldennis.com/


Dennis,
Dennis,

如果我理解你正确的2003版本它的工作原理预期和

没有任何开发组件。
If I understand You correctly the 2003 version of it worked as expected and
without any dev components.



是的。

Yes.


起初我会简单地删除组件并查看2005版本是否

加载项的工作方式与2003年相同。
At first I would simple remove the components and see if the 2005 version
add-in work in the same way as the 2003 do.



到目前为止,两个版本之间有一周的开发时间。我/ b $ b改变了每个表格完全基于这些组件,所以简单地说

此时不再是一个选项了。我希望我可以避免

必须通过代码并注释掉与组件相关的所有内容,以便我可以在没有它们的情况下编译它...

There is a week of development between the two versions by now. I
changed every form to be completely based on those components, so simply
going back is not an option anymore at this point. I hope I can avoid
having to go through the code and commenting out everything related to
the components so that I can compile it without them...


其次,我会在开发机器上进行干净安装,以确定它是否正常工作。毕竟,从IDE运行它可能并不总是发现问题。
Second, I would make a clean installation of it on the developing machine to
see if it work properly. After all, running it from the IDE may not always
uncover the issues.



它在开发机器上工作正常,即使不是来自IDE的朗姆酒。

那真令我困惑的是这个。

It works fine on the developing machine, even if not rum from the IDE.
That''s what is puzzling me really about this.


我发现使用

经典COM跟踪.NET的问题更加困难,这是基于我自己的经验我编写了一篇关于

故障排除的文章。这是不完整的,永远不可能......
http://www.excelkb.com/article.aspx?id=10206



谢谢。我正在经历它。

Thanks. I''m going through it.


根据我的经验''shimmed''COM加载项似乎有更少的问题然后

''未经过模仿''但这并不是必要的,因为它看起来与使用中的组件有关。


In my experience ''shimmed'' COM Add-ins appear to have less issues then
''unshimmed'' but it''s not necessary the case here as it looks like it related
to the components in use.



这个加载项的COM填充程序在我的待办事项列表中,但是我怀疑它是否可以使任何

感觉来补充添加-in在启动时崩溃。所以垫片必须等到
等到我弄清楚这里发生了什么。


感谢您的帮助!!


Patrick Schmid

A COM shim for this add-in is on my to do list, but I doubt it makes any
sense to shim an add-in that is crashing on startup. So the shim has to
wait till I figure out what is going on here.

Thanks for your help!!

Patrick Schmid


>

-------------- -

亲切的问候,

Dennis

每周博客.NET& Excel: http://xldennis.wordpress.com/

我的英文网站: http://www.excelkb.com/default.aspx

我的瑞典网站: http://www.xldennis.com /


这篇关于加载COM加载项期间的运行时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆