locked
Error on sending Outlook emails RRS feed

  • Question

  • User-795931845 posted

    Hi,

    I am trying to send an email using Outlook in my application. When I run the application in my local machine , it works fine and sends the email using my outlook address. But when I depolyed it onto our server, which is a  Windows Server 2008, it throws an error:

    Description:            Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005.
    Date/ time:            20100908_03:51:48
    FullErrorOutput:            

    System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005.
       at _Default.SendWelcomeEmails(String email)
       at _Default.btnGrant_Command(Object sender, CommandEventArgs e)
       at System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e)
       at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


    Can someone please guide me as to the cause of this error and help me fix this please. I have no idea from where to start.


    Thanks


    Wednesday, September 8, 2010 7:26 AM

Answers

  • User1068204517 posted

    Try putting the following tag after the <authentication mode="" />

    <identity impersonate="true"/>


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, September 8, 2010 3:33 PM

All replies

  • User1068204517 posted

    Take a look at this link

    http://blog.crowe.co.nz/archive/2006/03/02/589.aspx

    Wednesday, September 8, 2010 8:11 AM
  • User-795931845 posted

    I did try the following, but couldnot find Microsoft Outlook application umder DCOM Config.

    But the server does have Outlook 2007 installed on it.


    Any help please.


    Thanks

    Wednesday, September 8, 2010 8:29 AM
  • User1068204517 posted

    Try putting the following tag after the <authentication mode="" />

    <identity impersonate="true"/>


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, September 8, 2010 3:33 PM