Intemittent Cannot create ActiveX component

∥☆過路亽.° 提交于 2019-12-14 04:12:21

问题


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

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

This is driving us nuts. Any help appreciated.


回答1:


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

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.

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.

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



来源:https://stackoverflow.com/questions/5585358/intemittent-cannot-create-activex-component

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!