Outlook Security Manager crashes when connecting to fast

Add-in Express™ Support Service
That's what is more important than anything else

Outlook Security Manager crashes when connecting to fast
 
Lukas P.




Posts: 2
Joined: 2007-07-04
I use the following c# code:

objOutlook = new Outlook.Application();
securityManager = new AddinExpress.Outlook.SecurityManager();
securityManager.ConnectTo(objOutlook);


If there is no outlook process already open, I'm getting the following error:
Error HRESULT E_FAIL has been returned from a call to a COM component.
Value does not fall within the expected range.
A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in SecurityManager.2005.dll

If I call securityManager.ConnectTo(objOutlook); some seconds later there is no problem. It looks like my Outlook object is not fully initialized for the securitymanager. How can I avoid that?

I use WinXP SP2 with Outlook 2003. The secman dll is registred.
Posted 04 Jul, 2007 08:26:19 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Lukas.

Do you run the code from an .exe program?
Have you tested our examples yet? Do they work on your PC?



P.S. We always do our best to answer your forum requests as soon as possible. However, we apply the rule "first in first out" with Premium Support Service subscribers taking priority. Please understand it may take us some time to do research on the issue. Please be assured we will let you know as soon as the best possible solution is found.
Posted 04 Jul, 2007 10:14:14 Top