由于以下错误,从iclassfactory创建具有CLSID {00024500-0000-0000-C000-000000000046}的COM组件实例失败:8001010a excel自动化 [英] Creating an instance of the COM component with CLSID {00024500-0000-0000-C000-000000000046} from the iclassfactory failed due to the following error: 8001010a excel automation

查看:154
本文介绍了由于以下错误,从iclassfactory创建具有CLSID {00024500-0000-0000-C000-000000000046}的COM组件实例失败:8001010a excel自动化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在Windows Server 2010上面临与excel生成相同的问题。我们是否有解决方案。我甚至实现了IMessagefilter,但它没有用。请帮助解决这个问题吗?



提前谢谢



创建COM实例由于以下错误,IClassFactory中CLSID为{00024500-0000-0000-C000-000000000046}的组件失败:8001010a。



我尝试过:



添加了thread.sleep并试图将Windows服务从mta转换为sta,但问题仍然存在。请告诉我如何检查它是否是服务器配置问题。

解决方案

问题是您在非用户交互式环境中使用Office应用程序。您不能在Web应用程序或窗口服务中使用Office Interop。如果没有用户登录到控制台并使用您的应用程序,则无法使用Office Interop。



问题是Office应用程序不支持重新入侵。这意味着它无法同时处理多个请求。


COM有时是必需的,您必须坚持错误消息。我最好的猜测是你有另一个实例正在运行来自MVP 诺顿病毒扫描程序



查看任务管理器以确保没有其他Excel实例正在运行。



为什么不按照这种方式

Hi,

I am facing the same issue with excel generation on windows server 2010. DO we have solution for this. I have even implemented IMessagefilter but it didn't work. Please can some help to resolve this issue?

Thanks in advance

Creating an instance of the COM component with CLSID {00024500-0000-0000-C000-000000000046} from the IClassFactory failed due to the following error: 8001010a.

What I have tried:

added thread.sleep and tried to convert windows service from mta to sta but the issue still exists. Please let me know how to check if it a server configuration issue.

解决方案

The problem is that you're using an Office application in a non-user-interactive environment. You can NOT use Office Interop in web applications or window services. If there isn't a user logged into the console and using your application, Office Interop cannot be used.

The problem is that Office applications do not support re-entrancy. That means it cannot handle multiple requests at the same time.


COM is sometimes weired and you must stick to the error message. My best guess is that you have another instance running as descibed here from a MVP or some issues with Norton virus scanner.

Take a look in your task manager to ensure that no other Excel instance is running.

Why arent you doing it in this manner?


这篇关于由于以下错误,从iclassfactory创建具有CLSID {00024500-0000-0000-C000-000000000046}的COM组件实例失败:8001010a excel自动化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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