DLL Registered correctly, but getting ACTIVEX cannot create component


New member
Nov 15, 2014
Programming Experience

I have an VB.NET application, which we had recently migrated from Visual Basic 6. The VB6 application was referring to the REDEMPTION DLL to connect to Exchange Servers for sending mails and meeting invites. Now that the same has been converted to VB.NET 2005, we have set the application to work on "ANY CPU". We tried adding reference to the REDEMPTION dll (both 32 bit (from SYSWOW64 folder) and 64 bit (from SYSTEM32 folder)), but the application fails with the error "Cannot create ActiveX component" at the statement oRDOSession = CreateObject("Redemption.RDOSession").

Should we use the 32 bit or 64 bit of redemption?
Should we use the INTEROP version of redemption (InterOP.Redemption.dll)?

Would be better if code samples and steps, if any, can be provided for resolving this issue, since I am new VB.NET technology

Thanks in advance


Well-known member
Oct 18, 2011
Montreal, QC, CA
Programming Experience
In VB.NET, you would add a reference to the Interop.Redemption.dll file that comes with Redemption (it's in the download on their website) to the reference tab in the project's properties and copy both the interop and the Redemption*.dll files to the output. Then in code reference its namespace. This also lets you benefit from Intellisense, and exceptions will throw. For example:

Imports Redemption

Public Class Form1
    Private oRDOSession As New RDOSession

The code you posted above isn't even good VB or VBScript code, you would be missing the Set statement.
Top Bottom