WCF Service Send Email On Outlook | Exception from HRESULT RRS feed

  • Question

  • hi
    I have created a WCF Project  in .NET 4.5  to send emails from Outlook 2013 Or 2016  and host it on windows server 2012 and iis 8 ,
    When run Service from Visual studio 2019 in windows 10 everything works as expected but When deployed to IIS 8 in windows server 2012  the following error happens:

    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)).
       at Service.SendEmailWithOptions

    I also did DCOM Config that I found solution from other posts but still I have same problem.
    i want attach metting and reminder in email , for this i used outlook .(outlook connected to Exchange)
    . if there is other way please say it.

    thanks in advanced

    • Edited by AntiSec Saturday, December 7, 2019 9:03 PM
    Saturday, December 7, 2019 9:01 PM