Click here to Skip to main content
15,886,059 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
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:
HTML
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)).

In the web.config, there is no impersonation.
<authentication mode="Windows"/>

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.
Posted
Updated 12-Mar-14 5:18am
v2

1 solution

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.
 
Share this answer
 
Comments
ZohaibRazaTheDProgrammer 5-Mar-15 12:49pm    
@Member 10417613 please provide detail steps on how you fixed this problem. I am also facing the same issue

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900