M B

M B

  • NA
  • 61
  • 11.5k

Getting COMException when accessing on Outlook 2010

May 3 2016 4:58 AM
Hi All,
 
Error :-
Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80010001 Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED)).
 
My Code: 
 
private static Microsoft.Office.Interop.Outlook.NameSpace mapiNameSpace = null;
Outlook.Application myApp = new Outlook.Application();
mapiNameSpace = myApp.GetNamespace("MAPI");
 
The second line, throws an error message:-  
Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80010001 Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED))
 
Do you know any solutions? 
 
 
 
 

Answers (3)