检索 COM 类工厂中 CLSID 为 {000209FF-0000-0000-C000-000000000046} 的组件失败,该怎么解决

检索 COM 类工厂中 CLSID 为 {000209FF-0000-0000-C000-000000000046} 的组件失败
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------

检索 COM 类工厂中 CLSID 为 {000209FF-0000-0000-C000-000000000046} 的组件失败,原因是出现以下错误: 80070005 拒绝访问。 (异常来自 HRESULT:0x80070005 (E_ACCESSDENIED))。 
说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 

异常详细信息: System.UnauthorizedAccessException: 检索 COM 类工厂中 CLSID 为 {000209FF-0000-0000-C000-000000000046} 的组件失败,原因是出现以下错误: 80070005 拒绝访问。 (异常来自 HRESULT:0x80070005 (E_ACCESSDENIED))。 

ASP.NET 无权访问所请求的资源。请考虑对 ASP.NET 请求标识授予访问此资源的权限。ASP.NET 有一个在应用程序没有模拟时使用的基进程标识(通常,在 IIS 5 上为 {MACHINE}\ASPNET,在 IIS 6 和 IIS 7 上为网络服务,在 IIS 7.5 上为配置的应用程序池标识)。如果应用程序正在通过 <identity impersonate="true"/> 模拟,则标识将为匿名用户(通常为 IUSR_MACHINENAME)或经过身份验证的请求用户。 

To grant ASP.NET access to a file, right-click the file in File Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

源错误: 


行 28:             //}
行 29: 
行 30:             Microsoft.Office.Interop.Word.Application app = new Microsoft.Office.Interop.Word.Application();

在做word导出的时候遇到这个问题,在源码里面执行没有问题,但是部署到iis里面就出现了这个问题。
在网上查了很多解决办法,都没有解决。
请问大侠有没有其他的解决办法。

------解决方案--------------------
http://blog.csdn.net/ououou123456789/article/details/6102036
------解决方案--------------------
权限不够,试试把ASP.NET和IUSER这类用户加入到Administrators组中。
方法:右击我的电脑--管理--系统管理--本地用户和组--右击“ASP.NET”--属性--隶属于--添加--输入“Administrators”--确定。
------解决方案--------------------
引用:
权限不够,试试把ASP.NET和IUSER这类用户加入到Administrators组中。
方法:右击我的电脑--管理--系统管理--本地用户和组--右击“ASP.NET”--属性--隶属于--添加--输入“Administrators”--确定。

这么做,你的网站就等着被黑吧
------解决方案--------------------
引用:
Quote: 引用:

http://blog.csdn.net/ououou123456789/article/details/6102036


这些都试过,就是不行了。

组件注册了没?
------解决方案--------------------
引用:
按照

Quote: 引用:

http://blog.csdn.net/ououou123456789/article/details/6102036


按照您说的做了,这个问题解决了,又出现下面的问题了
Server Error in '/' Application.
--------------------------------------------------------------------------------

Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 8000401a 因为配置类型不正确,系统无法开始服务器进程。请检查用户名和密码。 (Exception from HRESULT: 0x8000401A). 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 8000401a 因为配置类型不正确,系统无法开始服务器进程。请检查用户名和密码。 (Exception from HRESULT: 0x8000401A).

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace: 

试试这个
------解决方案--------------------
做word导出啊,你用服务器端自动化技术容易在服务器上产生office死进程,代价很大。
用第三方产品也不错,比方说PageOffice,百度一下
------解决方案--------------------
Com+/MDTC服务有没有启动起来,操作Office等组件还要在WEB.CONFGIG中配置用户的权限(会引起安全问题)
<system.web>

 
    <identity impersonate="true" userName="administrator" password="xxxxxxx" />

</system.web>
------解决方案--------------------
自从用了myxls组件之后 在也没遇到过这样的问题..