Mrk Fldig Mrk Fldig - 1 month ago 20
C# Question

Wrong OS or OS Version when using Redemption

I'm trying to incorporate outlook redemption into a C# project (VS2015 Enterprise), I downloaded the dll's and used regsrv32 to register the 64 bit DLL, then added a reference within the C# project.

When running the application I get 'Wrong OS or OS version' when creating the RDOSession?

var Session = new RDOSession();
Session.Logon("", "", false, false, null, false);
var Inbox = Session.GetDefaultFolder(rdoDefaultFolders.olFolderInbox);

foreach (var Msg in Inbox.Items) {
Console.WriteLine(Msg);
}

Answer

It means the bitness of your app is different from the bitness of Outlook/MAPI system. Please see http://www.dimastr.com/redemption/faq.htm#ErrorCreatingRedemptionObject

Comments