暂时无法创建ActiveX组件 [英] Intemittent Cannot create ActiveX component

查看:126
本文介绍了暂时无法创建ActiveX组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一切正常,然后我们的代码开始抛出:

Everything was working fine, and then our code starts throwing:

尝试创建com对象时无法创建ActiveX组件。

Cannot create ActiveX component when we try to create a com object.

我们重新启动服务器几次,它就消失了

We reboot the server a couple of times and it goes away

然后过了一会儿又回来了

Then after a while it comes back

这使我们发疯。

推荐答案

我很抱歉这个问题含糊。但是,我们不知道是什么导致了问题,所以什么事实是相关的?

I apologize that the question was vague. However we had no clue what was causing the problem so what facts would have been relevant?

无论如何,事实证明我们有两个在IIS下运行的Web应用程序尝试创建ActiveX组件。一旦我们关闭其中一个Web应用程序,问题就消失了。

At any rate it turns out we have two web apps running under IIS, both are trying to create ActiveX components. As soon as we turn one of the web apps off the problem goes away.

在验证了此行为之后,我们尝试调用一些简单的ActiveX组件(例如excel)。只要有两个以上的Web应用程序运行,Lo就可以观察到完全相同的行为。

After we verified this behavior, we tried calling some simple ActiveX components (like excel). Lo and behold exactly the same behavior as long as there are more than two web apps running.

我们目前的解决方案是在其他地方托管第二个Web应用程序。

Our solution for now is to host the second web app elsewhere.

这篇关于暂时无法创建ActiveX组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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