secman,dll deplyment issue

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

secman,dll deplyment issue
Get error while trying to send email. secman.dll is not register 
Danny Leblanc




Posts: 3
Joined: 2011-04-15
Hello experts,

I have recently buy Security Manager 2010. Previously we are using Security Manager 2005. Application deployment was working fine but issue start once we moved from Windows XP to Windows 7 64 bit.

Whenever we are try to send email we got error message

"secman.OutlookSecurityManager" COM object is not registered. ---> System ApplicationException The 'secman.OutlookSecurityManager" COM object is not registered. at AddinExpression.Outlook.SecurityManager.ConnectTo(Object outlookApp)

I tried to change Register property of secman.dll to vsdrfCOMSelfReg and vsdrfCOM. I also tried to register manually using regsvr32.exe. I tried both from C:\windows\system32 and C:\windows\SysWOW64. I am also logged in the administration account and I am running command prompt as administration.

I am building application as stand alone application so we have choose x86 platform in the deployment.

Here is the IDE information and System information for your review.

Microsoft Visual Studio 2005
Version 8.0.50727.867 (vsvista.050727-8600)
Microsoft .NET Framework
Version 2.0.50727 SP2


Item Value
OS Name Microsoft Windows 7 Ultimate
Version 6.1.7600 Build 7600
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name PSIWS5
System Manufacturer Dell Inc.
System Model Inspiron 580s
System Type x64-based PC
Processor Intel® Core™ i3 CPU 530 @ 2.93GHz, 2933 Mhz, 2 Core(s), 4 Logical Processor(s)
BIOS Version/Date Dell Inc. A04, 3/26/2010
SMBIOS Version 2.6
Windows Directory C:\Windows
System Directory C:\Windows\system32
Boot Device \Device\HarddiskVolume2
Locale United States
Hardware Abstraction Layer Version = "6.1.7600.16385"
Page File C:\pagefile.sys

We appreciate any help and support from you. Please let me know if you need more information from us.
Posted 15 Apr, 2011 03:42:54 Top
Renat Tlebaldziyeu


Add-in Express team


Posts: 132
Joined: 2010-02-15
Hello Danny,

Thank you for choosing our product.

Please note that if you use the Security Manager component you need to register one of the COM dlls on the target PC. You can find more information about which dlls to register as well as a few examples in the Security Manager deployment articles on our technical blog, here is the entry point:
http://www.add-in-express.com/creating-addins-blog/2010/06/16/outlook-security-manager2010-deployment/
Posted 15 Apr, 2011 03:57:09 Top
Danny Leblanc




Posts: 3
Joined: 2011-04-15
Thank you Renat. I appreciate your quick response. I went thought this reference article. Now,

We are able register dll but

securityManager.ConnectTo() method is giving me error. It is still saying that secman.dll is not registered. I checked the registry and found that dll was register successfully.

Can you provide some expert suggestion this?
Posted 15 Apr, 2011 06:09:22 Top
Renat Tlebaldziyeu


Add-in Express team


Posts: 132
Joined: 2010-02-15
It seems that you have 32bit Outlook on the 64bit target PC. Is it so?
Does your application work as a 32bit or 64bit process on that PC? (you can find this information in the Windows Task Manager -> the Processes tab, your application will be labeled as *32 if it works as a 32bit process)
Posted 15 Apr, 2011 07:05:05 Top
Danny Leblanc




Posts: 3
Joined: 2011-04-15
I have windows 7 64 bit pc. And i am using outlook 2007.

My application works as 64 bit process.


Thanks again for your support.
Posted 15 Apr, 2011 18:17:39 Top
Renat Tlebaldziyeu


Add-in Express team


Posts: 132
Joined: 2010-02-15
Hello Danny,
If you deploy a standalone application (not an Outlook add-in!), make sure the bitness of your application is the same as that of Outlook, not the bitness of the operating system. That is, your application should be 32-bit if used for Outlook 2000-2007 and Outlook 2010 32-bit; it should be 64-bit if used for Outlook 2010 64-bit.
So, could you please try to compile your application with "x86" target platform? Did it help?

You can also configure the CorFlags section of the header of your portable executable image and sets the 32BIT flag. Please read the following article on our technical blog:
http://www.add-in-express.com/creating-addins-blog/2010/05/10/deployment-standalone-applications/
Posted 18 Apr, 2011 02:50:42 Top