none
Redemption installed successfully, but got Empty redemption object for Outlook 2016 while using it on win10 RRS feed

  • Question

  • Hi,

    there is an issue encountered while using the redemption.dll on win10 with 64bit os.

    after installing the latest version of redemption.dll as following codes:

     objshell.run "Regsvr32.exe " & chr(34) &DownloadFilePath&"Redemption64.dll" '& chr(34)

    The below lines are used to create the redemption. 

    Set objredemption = CreateObject("Redemption.safemailitem")
    Set objmeetingredemption = CreateObject("Redemption.SafeMeetingItem")

    However, empty objredemption, objmeetingredemption were obtained during the execution.

    May someone know the reason causing the issue?

    Many thanks in advance.

    

    Monday, July 10, 2017 6:06 AM

All replies

  • Hello Elfin,

    Did you try to run the regsvr32.exe utility for registering the library on a machine manually? Did you get any error messages in that case? Is it run with admin privileges?

    Take a look at the Error Message When You Run Regsvr32.exe on 64-Bit Windows article for more information.


    profile for Eugene Astafiev at Stack Overflow, Q&A for professional and enthusiast programmers

    Monday, July 10, 2017 10:14 AM
  • Hi Eugene,

    Thank you very much for your reply.

    Yes, i just tried to use the regsvr32.exe to register the library on machine manually by below command:

    %systemroot%\System32\regsvr32.exe %temp%\Working_Folder-attach\Redemption64.dll

    And i got the successfully installed msgbox popped up with info as 

    DllRegisterServer in C:\Users\**\AppData\Local\Temp\Working_Folder-attach\Redemption64.dll succeeded.

    Which is same as what i mentioned previously, after this successful registration, i got the empty redemption object returned by CreateObject("Redemption.safemailitem")



    • Edited by Elfin Yu Monday, July 10, 2017 12:26 PM
    Monday, July 10, 2017 12:26 PM
  • Are masking exceptions using "on error" statement? CreateObject never returns null, either a valid object is returned or an exception with the error description and code is raised.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Monday, July 10, 2017 2:32 PM
  • Are masking exceptions using "on error" statement? CreateObject never returns null, either a valid object is returned or an exception with the error description and code is raised.

    hi Dmirty,

    Thanks for the response.

    Yes, while executing the CreateObject function, there will be 429 errors  : 

    ActiveX component can't create object: 'Redemption.safemailitem' 

    ActiveX component can't create object: 'Redemption.SafeMeetingItem'

    And regarding to 429 errors with office application, there would be reasons as 

    https://support.microsoft.com/en-us/help/828550/you-receive-run-time-error-429-when-you-automate-office-applications

    Could you advise would any of the info in above URL help for this redemption issue?  Thank you.


    • Edited by Elfin Yu Tuesday, July 11, 2017 3:01 AM
    Tuesday, July 11, 2017 3:00 AM
  • Does the following apply?

    http://www.dimastr.com/redemption/faq.htm#ErrorCreatingRedemptionObject


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Tuesday, July 11, 2017 5:58 AM
  • Hi Dmitry,

    Just checked the Bitness string registry value of the current testing Outlook 2016 is x86, and it's running on a 64bit win10 OS. So by referring the below statements, does it mean we have to ensure the outlook be installed with the 64bit version? or we have to install the x86 redemption.dll? (i just tried to install the 32bit redemption.dll, it's still encountering the same error)

    "When your compile your code in Visual Studio as 'Any CPU', it gets compiled at run-time to match the bitness of the host OS, but you need to match the bitness of Outlook (e.g. 32 bit Outlook under a 64 bit OS). This means you need to compile 2 versions of your app: 32 bit and 64 bit, and install the appropriate version during the installation."

    Tuesday, July 11, 2017 10:59 AM
  • You just need to have 2 builds of your app - one 32 bit, which uses redemption.dll, and another 64 bit, which uses redemption64.dll

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Tuesday, July 11, 2017 3:17 PM
  • does it mean i cannot just have one 32bit outlook , with the redemption.dll installed? and i also have to install the 64bit outlook and with the redemption64.dll installed the same time?
    Wednesday, July 12, 2017 2:07 AM
  • No, what I mean is that if Outlook is 32 bit, you must install the 32 bit (x86) compiled version of your app which uses redemption.dll

    If Outlook is 64 bit, you must install the 64 bit (x64) version of your app that will use redemption64.dll.


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Wednesday, July 12, 2017 2:02 PM
  • Hi Dmitry,

    Thanks for the reply.

    Yes, that's what i have mentioned and tried before.

    I tried to install the 32bit redemption.dll with below lines, however the same error's still encountering.

             Set objshell = CreateObject("wscript.shell")
            objshell.run "%systemroot%\SysWoW64\Regsvr32.exe " & chr(34) &DownloadFilePath&"Redemption.dll"

    And i can find the info in Registry Editor with the below path

    Computer\HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{741BEEFD-AEC0-4AFF-84AF-4F61D15F5526}\InprocServer32

    Default value -> C:\Users\**\AppData\Local\Temp\Working_Folder\Redemption.dll

    Appreciate if you may observe any other details i need to pay attention to avoid the error.

    Thanks.

    Thursday, July 13, 2017 10:37 AM
  • Hi Elfin,

    Thanks for your post. Since your issue is related with Redemption which is not Microsoft product, I would suggest you contact Redemption Support.

    #Reference: http://www.dimastr.com/redemption/contact.htm

    Best Regards,

    Edward


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, July 19, 2017 7:50 AM