Outlook Security Manager installation issue

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

Outlook Security Manager installation issue
 
Sergey Grischenko


Add-in Express team


Posts: 7228
Joined: 2004-07-05
Hi Dmitry.

We decided to support VS 2005 Express Edition (C#, VB.NET, Managed C++).
You will receive our newsletter when 'ADX for VS 2005 Express' has been published.
Posted 16 May, 2006 12:00:53 Top
Dmitry Nikitin




Posts: 10
Joined: 2006-05-03
Segrey,

Thanks for sending the DLL...

Yet I am unable to get the SecurityManager component working with VS2005 Express Edition, while it perfectly functions on VS2003.

I also installed VS2005 Professional and encountered the same problem:
The assembly is successfully registered in the GAC. The component is available from the toolbox. When I drag and drop it onto a form, a try to run the application causes "Could not load file or assembly 'SecurityManager.2005, Version=1.5.1706.1, Culture=neutral, PublicKeyToken=aa42cad61af07cf4' or one of its dependencies. An attempt was made to load a program with an incorrect format." ( this exception is fired when attempting to construct the SecurityManager object ). That is, as I suspected we face the same problem as in VS2005 EE.

Please also note, that I tried to use secman.dll directly by importing the type library to an assembly ( using Tlbimp.exe ). Then I called Switch() method as you do in SecurityManager.2005.dll. It didn't work as well, but maybe we've got something to do with it - unlikely this is the case, though...

I also did regsvr32.exe /u secman.dll and then regsvr32.exe secman.dll - same result - perfectly works with VS2003 but raises the exception in VS2005.

Your help would be very appreciated.

Dmitry.
Posted 17 May, 2006 18:13:40 Top
Sergey Grischenko


Add-in Express team


Posts: 7228
Joined: 2004-07-05
Hi Dmitry.

Do you have VS2003, VS2005 Professional and VS2005 EE installed on the same PC?
Posted 18 May, 2006 08:27:03 Top
Dmitry Nikitin




Posts: 10
Joined: 2006-05-03
Do you have VS2003, VS2005 Professional and VS2005 EE installed on the same PC?


Correct. But it shouldn't matter, should it?
Posted 18 May, 2006 18:11:40 Top
Sergey Grischenko


Add-in Express team


Posts: 7228
Joined: 2004-07-05
Hi Dmitry.

I am sure about VS2003 and VS2005 on the same PC.
But VS2005 EE is not recommended to install with other versions of VS.
Anyway I will test it on my PC and will let you know about results soon.
Posted 19 May, 2006 12:08:32 Top
Dmitry Nikitin




Posts: 10
Joined: 2006-05-03
Sergey, I've just removed VS2005 EE from the machine and having same problem...
Posted 19 May, 2006 21:53:22 Top
Sergey Grischenko


Add-in Express team


Posts: 7228
Joined: 2004-07-05
Hi Dmitry.

It is very strange situation. I tested out the OSM component in VS2005 EE and it worked fine. Could you please test the component on other PCs?
Posted 22 May, 2006 08:49:27 Top
Dmitry Nikitin




Posts: 10
Joined: 2006-05-03
Sergey,

I've just copied the Outlook Security Manager to another PC where VS2005 EE is installed. I added SecurityManager.2005.DLL to the GAC manually and did regsvr32 secman.dll. Then I added the assembly to a project. After the build the application doesn't fire any exceptions and behaves normally, but Outlook still shows up the security guard dialog. What I did is:

securityManager.DisableOOMWarnings = true;

I'm using OOM...

Hm..

Any suggestions?
Posted 22 May, 2006 18:20:34 Top
Sergey Grischenko


Add-in Express team


Posts: 7228
Joined: 2004-07-05
Hi Dmitry.

You should call the ConnectTo method before you call the DisableOOMWarnings property. Please look at our examples from the OSM installation package to learn how it works.
Posted 23 May, 2006 11:29:58 Top
Dmitry Nikitin




Posts: 10
Joined: 2006-05-03
Sergey,

thanks for your responses. The OSM component works fine for me now.

Just for your information - if I try to build and application that is using OSM, OSM will not work if the Target Platform is set to x64.

That was the main cause of almost all of the problems discussed in this thread.

Cheers,
Dmitry
Posted 13 Jun, 2006 20:45:15 Top