I am in the process of designing an application that will copy emails from Outlook and put a lot of the content into a different format. Since some of the items I need to copy cause the security popups to appear, I have started playing around with the redemption.dll to overcome these difficulties. I had a running/working demo application that worked fine but they said hold off on it for the time being. 12 months later I got the ok to start back up on the process, however when I fired my vb.net project up I immediately received an error:
Creating an instance of the COM component with CLSID {741BEEFD-AEC0-4AFF-84AF-4F61D15F5526} from the IClassFactory failed due to the following error: 800401fa Wrong OS or OS version for application (Exception from HRESULT: 0x800401FA (CO_E_WRONGOSFORAPP)).
I narrowed down the code to what is causing the problem:
Imports Redemption
Dim sTest As Redemption.SafeMailItem = New Redemption.SafeMailItem
It doesn't matter if I register the Redemption.DLL first or not.
I've set the Configuration up to compile as X86 and X64, but both generate the error message.
My machine is Windows 7 64 bit, Outlook 2010 64 bit.
I read Dmitry's post on the topic: "It means the bitness of your app is different from the bitness of Outlook/MAPI system". Is there a different version redemption.dll for 64 bit system as compared to 32 bit systems. How can I tell which version do I have?
I suspect I have the 32 bit version of the redemption.dll and it is conflicting with the OS and Outlook? I've played with all the other variables and this is the only one remaining.
User contributions licensed under CC BY-SA 3.0