I'm in the process of developing a .Net Winform application for my client, to automatically schedule the execution of a number of Crystal Reports (existing .rpt files), and export the results in PDF and Excel formats, using the Crystal Reports API to load, run and export the reports.
I downloaded and installed the SAP Crystal Reports, developer version for Microsoft Visual Studio version v.13.0.10.1385 (Service Pack 10 - I'm waiting for my Client to provide access to download Service Pack 14!), and I'm using Visual Studio 2010, and developing against the .Net 4.0 framework.My client laptop is running Windows XP.
I also have Crystal Reports 2011 (Version 14.0.2.364 RTM) installed, which I use to design and manually execute Crystal Reports .rpt files.
The application works fine when executed within the context of the Visual Studio IDE/debugger.
The application also works fine when I build the Release version, along with an installer, install it onto my development laptop and execute it outside of Visual Studio (i.e. as it is intended to be executed on a "production" machine).
However, when I install the application onto a separate Desktop (running Windows XP, with the .Net 4.0 framework installed), I get exceptions raised due to a missing dependency that CrystalDecisions.VSDesigner.dll relies on.
Looking back at the build log, there is a warning against the building of the installer that states:
Unable to find dependency 'BUSINESSOBJECTS.FOUNDATION.LOGGING' (Signature='692FBEA5521E1304' Version='13.0.2000.0') of assembly 'CrystalDecisions.VSDesigner.dll'
I have searched my complete hard drive, and cannot find BusinessObjects.Foundation.Logging.dll anywhere on it.
So what am I missing, and why does the application function correctly when executed within the context of the Visual Studio debugger and on the development machine outside of Visual Studio? Is the dependency (if it's a real one) being met by some other assembly? How can I fix this issue?
Thanks.