Exception between C# and Outlook -
i have simple code open compose email in outlook 2013 using c#. works without issues when outlook not running, when outlook open exception:
an unhandled exception of type 'system.runtime.interopservices.comexception' occurred in mscorlib.dll additional information: retrieving com class mill component clsid {0006f03a-0000-0000-c000-000000000046} failed due next error: 80080005 server execution failed (exception hresult: 0x80080005 (co_e_server_exec_failure)).
here simple code:
microsoft.office.interop.outlook.application app = new microsoft.office.interop.outlook.application(); microsoft.office.interop.outlook.mailitem mailitem = app.createitem(microsoft.office.interop.outlook.olitemtype.olmailitem); mailitem.subject = "this subject"; mailitem.to = "someone@example.com"; mailitem.body = "this message."; mailitem.display(true);
i these visual studio output windows complaining symbols have no thought about!:
additional information: retrieving com class mill component clsid {0006f03a-0000-0000-c000-000000000046} failed due next error: 80080005 server execution failed (exception hresult: 0x80080005 (co_e_server_exec_failure)). 'mcpanel.vshost.exe' (clr v4.0.30319: mcpanel.vshost.exe): loaded 'c:\windows\assembly\gac_msil\microsoft.office.interop.outlook\15.0.0.0__71e9bce111e9429c\microsoft.office.interop.outlook.dll'. module built without symbols. 'mcpanel.vshost.exe' (clr v4.0.30319: mcpanel.vshost.exe): loaded 'c:\windows\assembly\gac_msil\office\15.0.0.0__71e9bce111e9429c\office.dll'. module built without symbols. first chance exception of type 'system.runtime.interopservices.comexception' occurred in mscorlib.dll unhandled exception of type 'system.runtime.interopservices.comexception' occurred in mscorlib.dll additional information: retrieving com class mill component clsid {0006f03a-0000-0000-c000-000000000046} failed due next error: 80080005 server execution failed (exception hresult: 0x80080005 (co_e_server_exec_failure)).
any help appreciated? in advance
most caused difference in security contexts. either outlook or app running elevated privileges?
c# exception outlook
No comments:
Post a Comment