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)).
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?