I am trying to get my ASP.NET website,hosted in IIS on a local server, to send a Outlook appointment item. However, I have encountered this error. I have tried the solutions provided by others online, but it still does not work.
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)).
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)).
This is the line that was highlighted:
Line 152: Outlook.Application outlookApp = new Outlook.Application();
Any form of help is much appreciated. Thanks.
User contributions licensed under CC BY-SA 3.0