The 'secman.OutlookSecurityManager' COM object is not registered.

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

The 'secman.OutlookSecurityManager' COM object is not registered.
 
SonomaJack




Posts: 189
Joined: 2006-06-30
I have a VS08 application that is using the ADS Security Manager, what when I call "SecurityManager.DisableOOMWarnings = True" throws "The 'secman.OutlookSecurityManager' COM object is not registered."

I have added the security manager lib to the references (listed at SecurityManager.2005 - 5.0.2013.2005). The code that is called is listed below.

The solution has 3 projects, 2 class libs and 1 windows forms app. The call to the security manager is in the class lib.

Dim SecurityManager As AddinExpress.Outlook.SecurityManager
SecurityManager = New AddinExpress.Outlook.SecurityManager()

SecurityManager.DisableOOMWarnings = True

What makes this more frustrating is that I have another project that is a COM Add-in (on the same machine) which uses the security manager, using the same 3 lines of code and same reference works just fine. So, I know that Security Manager is installed correctly on this machine. It is installed as part of the latest download of Add-In Express 2009.Net, Premium.

Jack


Posted 01 Oct, 2009 20:12:20 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Hello Jack,

I wonder if calling SecurityManager.ConnectTo({an Outlook.Application object}) before using DisableOOMWarnings helps.


Andrei Smolin
Add-in Express Team Leader
Posted 02 Oct, 2009 06:00:11 Top
SonomaJack




Posts: 189
Joined: 2006-06-30
It does not, it returns the same error.
Posted 02 Oct, 2009 07:23:48 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Jack,

Because Outlook is 32-bit, Security Manager is 32-bit too. So, you need to use the x86 platform in all configurations of that solution instead of AnyCPU.


Andrei Smolin
Add-in Express Team Leader
Posted 02 Oct, 2009 11:34:02 Top
SonomaJack




Posts: 189
Joined: 2006-06-30
That was it.

Thank you!

Jack
Posted 02 Oct, 2009 12:05:19 Top