Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
360 views
in Technique[技术] by (71.8m points)

vbscript - CreateObject("Redemption.RDOSession") returns error code 800401FA

I'm trying to use the redemption library in my script now and I can't load it.

Set m_objRDOSession = CreateObject("Redemption.RDOSession")

I have also tried to load it directly like the following

Set m_objRDOSession = GetObject("Redemption.dll", "Redemption.RDOSession")

Both the same error code, with null message and source.

I'm using windows 64 bit with outlook 32 bit. I have successfully loaded the library with c# and the redemption loader on the same machine.

PS: I should mention that I saw the terms and agreement prompt before the error got thrown.

What can I do?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Error code 0x800401FA is CO_E_WRONGOSFORAPP.

If the machine is 64 bit, you will end up using the 64 bit version of cscript.exe, but the bitness of your code must match the bitness of Outlook - use cscript.exe from the SysWow64 folder.

Extended MAPI is a set of dlls loaded in-proc, and a 64 bit process cannot load a 32 bit dll and vice versa.

See http://www.dimastr.com/redemption/faq.htm#ErrorCreatingRedemptionObject for more details.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.8k users

...