在ASP.NET应用程序中阅读Outlook邮件时出现错误 [英] Getting Error while reading outlook mail in ASP.NET Application

查看:58
本文介绍了在ASP.NET应用程序中阅读Outlook邮件时出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个ASP.NET应用程序.

从客户端计算机读取Outlook邮件时,出现以下错误.

请给我解决方法.

错误:

网页错误详细信息

用户代理:Mozilla/4.0(兼容; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.3; .NET4.0C; .NET4.0E)
时间戳记:星期二,2012年6月26日13:09:31 UTC


消息:Sys.WebForms.PageRequestManagerServerErrorException:由于以下错误,检索具有CLSID {0006F03A-0000-0000-C000-000000000046}的组件的COM类工厂失败:80070005访问被拒绝. (来自HRESULT的异常:0x80070005(E_ACCESSDENIED)).
线:939
字符:13
代码:0
URI:http://sipsv0039/Applications/ResumeParser/ScriptResource.axd?d = Y5t8k5fazW46Gmt8lKzy68zrIAfEh1s5myElPEtbTCbeKoDRpgw8Xnp1knNXkWAS4-nQ7BX1VCaFzWDSIQffff <4

首先,最直接的是,错误指出访问已被拒绝.这意味着您有权限问题.由于您在Web服务器上运行,因此请查看IIS在其下运行的用户是否具有您尝试访问的权限.

但是,从更大的角度看,我看到了一个设计问题.听起来您正在尝试从ASP.NET页访问客户端计算机上的Outlook.这行不通. ASP.NET是一种服务器技术.除非在非常有限的条件下(例如,文件上传),否则它永远都不能访问客户端计算机.如果您尝试访问电子邮件,最好的选择是转到电子邮件服务器并以这种方式获取邮件.您不会从客户端收到脱机电子邮件,但是无论如何您都不会这样.


I am using one ASP.NET Application.

While i am reading the outlook mail from the client machine, then i am getting the below error.

pls. give me the solution for this.

Error :

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.3; .NET4.0C; .NET4.0E)
Timestamp: Tue, 26 Jun 2012 13:09:31 UTC


Message: Sys.WebForms.PageRequestManagerServerErrorException: 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)).
Line: 939
Char: 13
Code: 0
URI: http://sipsv0039/Applications/ResumeParser/ScriptResource.axd?d=Y5t8k5fazW46Gmt8lKzy68zrIAfEh1s5myElPEtbTCbeKoDRpgw8Xnp1knNXkWAS4-nQ7BX1VCaFzWDSIQHwwQ2&t=ffffffff823b7694

解决方案

I see a couple issues here. First, and most directly, the error states that access has been denied. That means you have a permissions issue. Since you are running on a web server, look to see if the user that IIS is running under has rights to what you are attempting to access.

However, in the bigger picture, I see a design issue. It sounds like you are trying to access Outlook on the client''s machine from an ASP.NET page. This won''t work. ASP.NET is a server technology. It should never have access to the client machine, except under very limited conditions (file upload, for instance). If you are attempting to access email, the best bet would be to go to the email server and get the mail that way. You won''t get the offline email from the client, but you wouldn''t this way anyway.


这篇关于在ASP.NET应用程序中阅读Outlook邮件时出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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