由于以下错误,检索具有CLSID {00024500-0000-0000-C000-000000000046}的组件的COM类工厂失败:80070005 [英] Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005

查看:109
本文介绍了由于以下错误,检索具有CLSID {00024500-0000-0000-C000-000000000046}的组件的COM类工厂失败:80070005的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IIS上有一个ASP.NET网站,它会自动生成Excel文件,问题是我一直收到此错误:

I have an ASP.NET website on IIS and it generates Excel files automatically, the problem is I keep getting this error:

检索具有CLSID的组件的COM类工厂{00024500-0000-0000-C000-000000000046}由于以下原因而失败错误:80070005."

"Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005."

我已经尝试了网上的几乎所有方法来解决此问题,但我却不能:我已经为网站用户更改了Excel的DCOM配置,在System32和SysWOW64中创建了Desktop文件夹,并且完全控制了该文件夹用户,我什至将Miscrosoft Office安装文件夹的安全设置更改为同一用户,但没有运气.

I have tried almost everything on the net to solve this problem but I couldn't: I have changed the DCOM configurations of Excel for the user used for the website, created Desktop folder in System32 and SysWOW64 with full control for the same user, I even changed the security settings of the Miscrosoft Office installation folder to the same user but with no luck.

在我的情况下,我的网站使用SQL Server Reporting Service连接到另一台服务器以检索一些报告,因此,如果我将网站使用的用户更改为"LocalSystem"用户,则无法从第二台服务器获取报告,但可以生成Excel文件.

In my case my website connects to another server with SQL Server Reporting Service to retrieve some reports so if I change the user the website uses to "LocalSystem" user I can't fetch reports from the second server but I can generate Excel files.

因此解决方案可能是以下两种之一:我可以使用该用户创建Excel文件,或者以"LocalSystem"用户身份从第二台服务器检索报告.

So the solution might be one of two: either I can create the Excel files with this user or retrieve reports from the second server as a "LocalSystem" user.

推荐答案

尝试执行以下操作:

  1. 确保已安装Office互操作程序集.
  2. 在开发和生产中检查程序集的版本.
  3. 在系统配置文件下创建桌面文件夹.
  4. 为服务用户明确设置DCOM安全性.

您可以在 此处strong>

you can find more details here

这篇关于由于以下错误,检索具有CLSID {00024500-0000-0000-C000-000000000046}的组件的COM类工厂失败:80070005的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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