Installing Outlook Security Manager for 64 bit Office 2013

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

Installing Outlook Security Manager for 64 bit Office 2013
 
Matthew Fitzmaurice




Posts: 4
Joined: 2015-06-18
I have a MS Word Add-In that requests contacts from Outlook.
I've been successfully using your Outlook Security Manager product for 32 bit Office 2013 for some time (it's great thanks!). I develop in C# and create my installation packages using WIX.

I'm having trouble getting my add-in code to work with 64 bit Office 2013.

As far as I can see, I've followed the steps outlined in the following two articles:
https://www.add-in-express.com/creating-addins-blog/2010/06/16/outlook-security-manager2010-deployment/
https://www.add-in-express.com/docs/outlook-security-manager-deployment.php

My error message is:
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at AddinExpress.Outlook.IOutlookSecurityManager2.Check(Int32 apiType)
at AddinExpress.Outlook.SecurityManager.set_DisableOOMWarnings(Boolean value)
at GorillaDocs.Word.Outlook.Resolve(String fullname)
at GorillaDocs.Word.Outlook.GetContact()
at GorillaDocs.ViewModels.ContactViewModel.AddressBookPressed()

Thanks
Posted 19 Jun, 2015 04:12:32 Top
Andrei Smolin


Add-in Express team


Posts: 14137
Joined: 2006-05-11
Hello Matthew,

Please check to make sure that you register secman64.dll.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 19 Jun, 2015 06:01:56 Top
Matthew Fitzmaurice




Posts: 4
Joined: 2015-06-18
I was able to successfully run the following command:
regsvr32  "C:\Program Files\Common Files\Outlook Security Manager\secman64.dll"

But I still experience the problem.

My Security Manager code is in an external library dll.


           try
            {
                OutlookSecurityManager.securityManager.ConnectTo(app);
                OutlookSecurityManager.securityManager.DisableOOMWarnings = true;
                return SecureResolve(app, fullname, LDAPpath);
            }
            finally
            {
                OutlookSecurityManager.securityManager.DisableOOMWarnings = false;
                OutlookSecurityManager.securityManager.Disconnect(app);
            }

So I thought the error might be because I was targeting 'Any CPU'. I changed it to x64 and still have the problem.
Posted 19 Jun, 2015 09:49:18 Top
Andrei Smolin


Add-in Express team


Posts: 14137
Joined: 2006-05-11
Did you register secman64.dll starting the Command Prompt via the the Run as Administrator command?

Also I wonder if Outlook and your program are both started using (or not using) the Run as Administrator command.

You can also check if the SendMail sample application works on that system. Please find it as part of the download labelled as "Security Manager for Microsoft Outlook sample projects" at https://www.add-in-express.com/downloads/osm.php.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 19 Jun, 2015 10:01:52 Top
Matthew Fitzmaurice




Posts: 4
Joined: 2015-06-18
Thanks for your reply.
I have tried registering secman64.dll with and without Run as Administrator.
I have also tried starting Outlook/Word with and without Run as Administrator.
No luck however. I always get the same error.

I tried running SendMail, but get a 'SendMail.exe has stopped working' dialog.
I'll investigate this further later today.
Posted 19 Jun, 2015 22:26:23 Top
Matthew Fitzmaurice




Posts: 4
Joined: 2015-06-18
Thank you. It's working now. I was using older versions of the three files:
- SecurityManager.2005.dll
- secman.dll
- secman64.dll

Everything is working fine in 32 and 64 bit Office now.
Posted 21 Jun, 2015 19:16:53 Top
Andrei Smolin


Add-in Express team


Posts: 14137
Joined: 2006-05-11
Thank you for letting me know!

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 22 Jun, 2015 03:57:33 Top