检索COM类工厂具有CLSID误差分量:80070005,访问被拒绝 [英] Retrieving the COM class factory for component with CLSID error: 80070005 Access is denied

查看:394
本文介绍了检索COM类工厂具有CLSID误差分量:80070005,访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用我的asp.net应用程序打开Outlook。这是我的机器上工作的罚款。现在我部署应用服务器。我得到这个例外

 检索COM类工厂具有CLSID组件{0006F03A-0000-0000-C000-000000000046}失败,原因是出现以下错误:80070005访问被拒绝。 (异常来自HRESULT:0X80070005(E_ACCESSDENIED))。

我一直在试图解决这个异常三天。我用Google搜索了很多东西。

我想什么

他们说我必须去 DCOM配置,我去那里,但我没有找到Microsoft Office Outlook中的条目。

然后我打开一个cmd,然后我输入 MCC -32 然后我添加的组件服务器。 之后我看到的前景条目。我去了财产,然后到安全选项卡,然后我改变三个有选项给访问的每个人用户。但我一直有这个问题。

注意,我这样做,改变这两个条目

  Microsoft Outlook中Commadn按钮Outlook邮件附件

然后我改变了应用布​​尔到管理​​帐户登录服务器的用户,但我一直有这个问题。

请帮助我,我尝试了很多还真不少来解决,但我不能


解决方案

  

我想用我的asp.net应用程序打开Outlook。


微软目前并不提倡,不支持,从任何无人参与的非交互式客户端应用程序或组件(包括ASP,ASP.NET,DCOM和NT Service)Microsoft Office应用程序自动化,因为Office可能会出现不稳定的行为和/或死锁办公室时,在此环境中运行。

如果你正在构建在服务器端上下文中运行的解决方案,你应该尝试使用已取得安全的无人参与的执行元件。或者,你应该尝试寻找替代品,允许code运行客户端至少一部分。如果您使用从服务器端解决方案的Office应用程序,该应用程序会缺乏许多必要的能力,以成功运行。此外,您将承担风险与整体解决方案的稳定性。

作为一种变通方法,您可以使用低级别的API - 扩展MAPI。或围绕API的任何其他第三方包装(例如,赎回)。

I am trying to use my asp.net application to open the outlook. It is working fine on my machine. now i am deploying the app to the server. i got this exception

Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

I have been trying to solve this exception for three days. i googled a lot.

What I tried

they said that i have to go to DCOM CONFIG, i went there but I didn't find the microsoft office outlook entry.

then i opened a cmd and I typed mcc -32 and then i added the component server. after that i saw the outlook entry. i went to the property and then to the security tab, then i change the three of the options there to give access to the everyone user. but i kept having this problem

Note that I did that changes to these two entries

Microsoft Outlook Commadn Button

outlook message attachment

then i changed the user of the application bool to the Administrator account of the server, but i kept having the problem

please help me, i tried a lot really a lot to solve , but i couldn't

解决方案

I am trying to use my asp.net application to open the outlook.

Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.

If you are building a solution that runs in a server-side context, you should try to use components that have been made safe for unattended execution. Or, you should try to find alternatives that allow at least part of the code to run client-side. If you use an Office application from a server-side solution, the application will lack many of the necessary capabilities to run successfully. Additionally, you will be taking risks with the stability of your overall solution.

As a workaround you can use the low-level API - Extended MAPI. Or any other third-party wrappers around that API (for example, Redemption).

这篇关于检索COM类工厂具有CLSID误差分量:80070005,访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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