Hi,
I have an xbap application developed in Visual Studio 2012 having crystal reports for visual studio.
The application is built with Any CPU.
My development machine configuration is:
1) Windows 7 Professional with Service pack 1
2) 64 bit Operating System
3) .Net Framework 4.5 (Visual studio 12)
4) SAP crystal report runtime engine for .NET framework (64-bit)
5) SAP crystal report runtime engine for .NET framework (32-bit)
6)SAP crystal report, version from Microsoft Visual Studio
The application works fine in following scenario.
1) 32 bit Windows 7 machine with 32 bit crystal runtime
2) 64 bit Windows 7 machine with 32 bit crystal runtime
However, with 64 bit Windows 7 machine with 64 bit crystal runtime. I end up getting the following error :
Could not load file or assembly 'CrystalDecisions.ReportAppServer.CommLayer, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
I get the above exception while trying to load the assembly form the GAC in the code. Following is the code to reproduce in 64 bit machine with 64 bit crystal report runtime:
conststring CrystalReportsViewerAssemblyGAC = "CrystalDecisions.ReportAppServer.CommLayer, Version=13.0.2000.0, Culture=neutral,PublicKeyToken=692fbea5521e1304";
publicstaticvoid CrystalReportLoadTest()
{
Assembly.Load(CrystalReportsViewerAssemblyGAC);
//Could not load file or assembly error is thrown.
}
Any help is much appreciated.
Thanks.