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

解决办法 :添加ASP.NET权限访问COM组件服务。

IIS 5 上为 {MACHINE}\ASPNET

IIS 6 和 IIS 7 上为网络服务:NETWORK SERVICE

IIS 7.5 上为配置的应用程序池标识:IIS AppPool\{应用程序池}

解决步骤(win8iis8为例)

1."控制面板->管理工具->组件服务"打开组件服务

 

2.修改位置

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005_第1张图片

3.添加启动和激活权限

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005_第2张图片

(1)以下为添加NETWORK SERVICE的情况

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005_第3张图片

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005_第4张图片

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005_第5张图片

(2)以下为添加应用程序池的情况

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005_第6张图片

这里添加的是网站的应用程序池

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005_第7张图片

IIS AppPool\Classic .NET AppPool

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005_第8张图片

4.添加访问权限

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005_第9张图片

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005_第10张图片

5.修改标识

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005_第11张图片

注意:

如果在不远程登录服务器的情况下,访问报错,那是因为使用交互式用户,选中这个选项时,服务器必须有用户登录,这不太现实,建议指定一个用户。

你可能感兴趣的:(Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005)