Security Manager COM Error

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

Security Manager COM Error
Security Manager COM Error 
Andrei Smolin


Add-in Express team


Posts: 14123
Joined: 2006-05-11
Hello Bob,

Mmm, it looks like this was just a round trip.

I've talked with our guys and they suggested that you check this blog:

Outlook Security Manager 2010 deployment: Reg Free COM & ClickOnce for Outlook 2010 64-bit, part 5

What Outlook version, service pack and bitness do you use?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 18 Feb, 2013 09:24:11 Top
Bob Rowe




Posts: 17
Joined: 2010-10-29
This will be mostly Outlook (32-bit) on Windows 7 machines (32-bit). But, there will be a small percentage of Outlook (64 bit) running my application. I have read thru the article you site above and this may work for the 64-bit versions. But, my main goal is just to get the REG Free COM working on the 32 bit versions which is 90% of my installs. Please advise and thanks for the assistance.
Posted 18 Feb, 2013 09:32:23 Top
Andrei Smolin


Add-in Express team


Posts: 14123
Joined: 2006-05-11
Bob,

Is your application built for x86 or Any CPU?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 18 Feb, 2013 09:49:28 Top
Bob Rowe




Posts: 17
Joined: 2010-10-29
x86

FYI
Posted 18 Feb, 2013 09:50:40 Top
Andrei Smolin


Add-in Express team


Posts: 14123
Joined: 2006-05-11
Thank you. Tomorrow, I'm going to create a sample project for you.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 18 Feb, 2013 09:54:56 Top
Bob Rowe




Posts: 17
Joined: 2010-10-29
Thank you for your assistance.
Posted 18 Feb, 2013 09:56:16 Top
Andrei Smolin


Add-in Express team


Posts: 14123
Joined: 2006-05-11
Hello Bob,

I've sent you a download link by email. Please check your Inbox.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 19 Feb, 2013 07:24:49 Top
Bob Rowe




Posts: 17
Joined: 2010-10-29
Thanks - I have found it. Immediately I get an error that the following Key cannot be imported. "ClickOnceStadaloneVBAp_1_TemporaryKey.pfx" How do I fix that?

Can you describe what the Manifest Fix project does.

Thanks again.
Posted 19 Feb, 2013 11:16:40 Top
Andrei Smolin


Add-in Express team


Posts: 14123
Joined: 2006-05-11
ClickOnceStadaloneVBAp_1_TemporaryKey.pfx is valid on my machine only. You need to use your existing key or create a new temporary one.

ManifestFix is described in Outlook Security Manager 2010 deployment: Reg Free COM & ClickOnce for Outlook 2010 64-bit, part 5.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 20 Feb, 2013 00:29:16 Top
Bob Rowe




Posts: 17
Joined: 2010-10-29
Thanks... I notice in your example project that you do not have secman.dll referenced as mentioned in the Reg Free Com Article. (Part 2) When Secman.dll is referenced (as mentioned below), I am still getting the COM error. When I remove the secman.dll reference the COM error disappears. On my testing machine I have manually registered secman.dll which is why it will work.

I was following these steps mentioned in the article.

Go to the References folder of the newly created project and add a new COM reference (see the COM tab of the Add Reference dialog of Visual Studio). See the secman record in the list.

Select the just added reference and set its Isolated property to true.

Add the security manager component to the form by selecting it in the Toolbox and dragging to the form instance in the forms designer. (If you don't have a security manager item in the Toolbox window, you need to add it by using the Choose Items item of the Toolbox context menu).

Return to the References folder of your project and set the Copy Local property of the SecurityManager.2005 reference to true.

Now you can generate a ClickOnce installer. Select the add-in project in the Solution Explorer. Right click on it and select the Publish context menu item.

That’s all. As you see, deploying Outlook Security Manager using ClickOnce is as easy as it can possibly be. You just need to bear in mink two important things:

Set the Isolated property of the secman.dll to true.
Set the Copy Local property of the SecurityManager.2005.dll reference to true.
Posted 20 Feb, 2013 11:40:51 Top