IIS 6 / 7.5 - 无法通过Outlook发送电子邮件 [英] IIS 6/7.5 - Can't send email through Outlook

查看:118
本文介绍了IIS 6 / 7.5 - 无法通过Outlook发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在我的asp.net项目中通过打开Outlook发送电子邮件。它在本地运行调试时有效。我将它部署到我的IIS 6 / 7.5后,出现了这样的错误:

Tried to send an email by open Outlook in my asp.net project. It works when I run debugging locally. After I deployed it into my IIS 6/7.5, got such an error:

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)). 
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.UnauthorizedAccessException: 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)).



在web.config中,没有假冒。


In the web.config, there is no impersonation.

<authentication mode="Windows"/>



然后,我打开了组件服务向导。在Computers \DCOM Config \下,我找不到{0006F03A-0000-0000-C000-000000000046}。

如何将资源的访问权限授予ASP.NET请求身份?谢谢。


Then, I opened the Component Services wizard. Under Computers\DCOM Config\, I could not find the {0006F03A-0000-0000-C000-000000000046}.
How can I grant the access rights to the resource to the ASP.NET request identity? Thanks.

推荐答案

发现问题的SMTP服务器主机不正确。使用正确的SMTP服务器主机地址,错误消失了。感谢审稿人,尤其是那些提供意见或解决方案。
Problem found to be incorrect SMTP Server Host. With a right SMTP Server Host address, the bug was gone. Thanks to Reviewers, esp. to those provided comments or solutions.


这篇关于IIS 6 / 7.5 - 无法通过Outlook发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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