Unspecified error on ConnectTo method on a 64 bit os with 64 bit Outlook 2010 (vb.net)

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

Unspecified error on ConnectTo method on a 64 bit os with 64 bit Outlook 2010 (vb.net)
System.Runtime.InteropServices.COMException (0x80004005): Unspecified error on line SecurityManager.ConnectTo(olApp) 
G H H




Posts: 4
Joined: 2011-01-14
I truly hope someone can help me. I tested this change for the way we send emails on Outlook 2000 - 2010 32bit with no issue and the first test that QA does and it goes boom. It dies after seeing Step-10 and Step-5 is never seen. Here's the code:
[CODE]
Dim olApp As Object


Dim OlType As Type = Type.GetTypeFromProgID("Outlook.Application", False)
Try
olApp = System.Runtime.InteropServices.Marshal.GetActiveObject("Outlook.Application")
Catch
System.Windows.Forms.MessageBox.Show("Step-1")
End Try

Try
System.Windows.Forms.MessageBox.Show("Step-2")
If (olApp Is Nothing) Then
System.Windows.Forms.MessageBox.Show("Step-3")
olApp = Activator.CreateInstance(OlType)
System.Windows.Forms.MessageBox.Show("Step-4")
End If
Catch
System.Windows.Forms.MessageBox.Show("Step-5")
End Try

System.Windows.Forms.MessageBox.Show("Step-6")

Dim email As Object 'Outlook.MailItem
System.Windows.Forms.MessageBox.Show("Step-7")
email = olApp.CreateItem(0)
System.Windows.Forms.MessageBox.Show("Step-8")
Dim SecurityManager As Object
System.Windows.Forms.MessageBox.Show("Step-9")
SecurityManager = New AddinExpress.Outlook.SecurityManager
System.Windows.Forms.MessageBox.Show("Step-10")

SecurityManager.ConnectTo(olApp)
System.Windows.Forms.MessageBox.Show("Step-11")
SecurityManager.DisableOOMWarnings = True
System.Windows.Forms.MessageBox.Show("Step-12")
Try

email.Recipients.Add(EmailAdd)
System.Windows.Forms.MessageBox.Show("Step-13")
email.Subject = Subject
System.Windows.Forms.MessageBox.Show("Step-14")
email.Body = Body
System.Windows.Forms.MessageBox.Show("Step-15")
email.Attachments.Add(AttachmentPath, 1)
System.Windows.Forms.MessageBox.Show("Step-16")
email.Send()
System.Windows.Forms.MessageBox.Show("Step-17")
Catch ex As Exception
System.Windows.Forms.MessageBox.Show(ex.ToString())
Finally
SecurityManager.DisableOOMWarnings = False
SecurityManager = Nothing
email = Nothing
olApp = Nothing
End Try
System.Threading.Thread.CurrentThread.Sl eep(50)
Posted 14 Jan, 2011 14:46:05 Top
Renat Tlebaldziyeu


Guest


Hi,

Could you please answer the following questions:

1. What version of Outlook Security Manager do you use?
2. Do you have secman.dll registered on the PC?
3. Do you get any exception in the line right after Step-10? (SecurityManager.ConnectTo(olApp))
4. Do you use this code in a background thread?
Posted 17 Jan, 2011 04:47:32 Top
G H H




Posts: 4
Joined: 2011-01-14
Hi,

1. The verions of Outlook Security Manager is 1.2.1703.21569
2. Secman.dll is not registered. secman64.dll is registered
3. The error actually happens on line SecurityManager.ConnectTo(olApp)
4. This is part of a vb.net dll and is referenced as needed.

Thanks,
George
Posted 17 Jan, 2011 07:25:06 Top
Renat Tlebaldziyeu


Guest


Hi George,

The verions of Outlook Security Manager is 1.2.1703.21569

You use an outdated version of Outlook Security Manager. Please note that version 1.2.1703.21569 doesn't support Outlook 2007 - 2010.

Secman64.dll was added in version 2010 of Outlook Security Manager. So, can please specify what version of Outlook Security Manager you actually use?

Secman.dll is not registered. secman64.dll is registered

If you use Outlook 2000 - 2010 32bit you need to register secman.dll, you need to have secman64.dll registered only for Outlook 2010 64bit.
Please try to register secman.dll. You can use the regsvr32 utility for this:
regsvr32 "<path to secman.dll>"
Did it help?
Posted 17 Jan, 2011 07:57:27 Top
G H H




Posts: 4
Joined: 2011-01-14
So, it seems this is a version issue with securitymanager.dll. What version of SecurityManager.dll should I be using?
Posted 17 Jan, 2011 09:00:52 Top
G H H




Posts: 4
Joined: 2011-01-14
Hi,

I just downloaded the newest version of OutlookSecurtity manager, but I can't find my orginal activation information or the accont name that was used to activate it. Who should I contact?

Thanks,
George
Posted 17 Jan, 2011 09:29:42 Top
Svetlana Cheusheva


Add-in Express team


Posts: 244
Joined: 2005-02-02
Hi George,

Version 2010 is a commercial major upgrade and requires a new license key. As a registered customer you can buy the upgrade with a 50% discount. Here is the upgrade page:
http://www.add-in-express.com/purchase/version-upgrade.php?family=osm&type=latest-version

If you have any questions about licensing, please contact me (sales department) using any contact from on our web-site.
Posted 17 Jan, 2011 09:45:20 Top