avatar image
Former Member

Reports fail to open in WinForms application, which built under "Any CPU" target on X64 machine

We have a Windows Forms application developed in VB.net and C#. This application have the SAP Crystal reports 2008 dependency to show the reports. Our application always built under "Any CPU" target and working fine with X86 based machines. However, we are seeing problem in X64 machine while trying to interact with Crystal reports libraries. Application report isn’t working in X64 machine.

ISSUE : Reports fail to open in WinForms application, which built under "Any CPU" target on X64 machine

Environment:
OS: Windows 7, X64
.Net Framework: 4.0
Application type : WinForms
Third-party : Crystal Reports 2008

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 04, 2017 at 08:28 PM

    CR runtime is based on your application settings and not the OS. Since CR 2008 does not have a 64 bit runtime redist package it will only work in x86 mode. MSIExec will detect the OS platform and try to use that as the starting point and therefore fail when it tries to start, 64 bit CR runtime does not exist.

    Look it up on MSDN on how to use the boot loader to specify how it loads or just change your project to x86 mode rather than AnyCPU.

    Don

    Add comment
    10|10000 characters needed characters exceeded

Skip to Content