COM端口访问权限 [英] COM PORT ACCESS PERMISSION
问题描述
我创建了一个项目,使用ASP.NET C#4.0和Microsoft Office 2010中的Microsoft Outlook发送邮件。当我使用PC从我的项目发送邮件时(Windows 7 Ultimate 64bit) ),它成功发送。但是当我在Web服务器PC(Wndows Server 2008 R2 Enterprise 64位)上部署/发布时,我给出了以下错误消息
System.Exception:检索COM由于以下错误,CLSID为{0006F03A-0000-0000-C000-000000000046}的组件的类工厂失败:80070005访问被拒绝。(HRESULT异常:0x80070005(E_ACCESSDENIED))。
请,请紧急给我实际解决方案。
感谢你
特里斯坦
Hi,
I have created a project to send mail using Microsoft Outlook in ASP.NET C# 4.0 and Microsoft Office 2010. When I send mail from my project using my PC(Windows 7 Ultimate 64bit), it successfully send. But when I deployed/published on web server PC (Wndows Server 2008 R2 Enterprise 64bit), I gave an error message given following
"System.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))."
Please, please give me actual solution urgently.
Thanking you
Tristan
推荐答案
首先,它不是COM PORT!
您尝试使用COM对象。有关COM对象的信息存储在注册表中。当您尝试实例化COM对象时出现问题:IIS使用用户帐户运行,该用户帐户无权访问该注册表的位置。
解决方案:相应地设置权限,请参阅例如 http://forums.asp.net/t/931005.aspx [ ^ ]。
First of all, it is not the COM PORT!
You try to use a COM object. The information about the COM object is stored in the registry. Something went wrong when you tried to instantiate the COM object: IIS runs with a user account which has not the right to access that place of the registry.
Solution: Set the rights accordingly, see e.g. http://forums.asp.net/t/931005.aspx[^].
这篇关于COM端口访问权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!