Skip to Content
0
Former Member
Apr 18, 2008 at 02:54 AM

.Net class file doesn't work on 64bit Vista machine

16 Views

Post Author: Cyberdevil67

CA Forum: .NET

I am not sure that I am posting this into the right area or not.

I have 2 machines running Vista Ultimate, one is 64bit the other is 32bit. Both have Crystal Reports 2008 and Visual Studio 2008 installed.

I have created a class to open a report, print, change the connection info etc. To be used in a web application. I also have a Windows test form that runs the class file and displays the loaded report in a viewer.

Both machines have .Net 2.0 and 3.5 installed.

Within Visual Studio 2008 the class file works fine.

On the 32bit machine within the web application it works fine as well, but not on the 64bit machine in the web application.

On the 64bit machine I am getting this which tells me that it is a 64bit issue.

System.InvalidOperationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. at au.com.aegeon.asReportTool.CreateReportDocument(String reportFile) at au.com.aegeon.asReportTool.OpenReport(String reportFile) at au.com.aegeon.asReportTool.Export(String fileName, CrystalExportFormat exportFormat)