18 January 2011

Crystal Report .NET and 64-bit application

Information specific to users with a 64-Bit development machine. 

Crystal Reports for Visual Studio projects can be built on a 32-bit or a 64-bit machine. In addition, the projects' code can be ported to and updated on a 64-bit machine. Itanium (IA64) processors are supported for run-time only.
On a 64-bit machine, the 32-bit Crystal Reports Basic for Visual Studio 2008 IDE will run under WOW64 (the x86 emulator that runs 32-bit applications on a 64-bit machine). 

Before you can run an application on a 64-bit machine you must install the Crystal Reports 64 bit runtime for your 64-bit environment. If you have installed Visual Studio into the default installation directory, the configuration application can be found in the below directory.
For Crystal Reports Basic for Visual Studio 2008, the redist files will be installed to the location of the .Net 3.5 SDK on your local machine. This location may change depending upon your system setup.

Crystal Reports for Visual Studio 2008 requires a "runtime" to load reports on a client machine.  This "runtime" can be found in this location on the development machine.

"C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\CrystalReports10_5"

"CRRedist2008_x86.msi" (for 32bit)
"CRRedist2008_x64.msi" (for 64bit)

Running this install package will install the files necessary to run open forms using Crystal Reports for Visual Studio 2008 (version 10.5 in the IDE).  This is NOT the required "Runtime" for Crystal Reports 2008 (which is version 12).

Access to report file denied. Another program may be using it.

From your setup, Crystal will always create the their temp files in your C:\Windows\Temp directory.  In iis 5 the aspnet_wp needs access to this folder.  In iis 6 it is the IIS_WPG account that needs access to this folder.  I believe it needs, read, write and modify permissions, shouldn't need execute. 

ASP.NET 3.5 had this error.   

Error in File C:\DOCUME~1\FFUK\ASPNET\LOCALS~1\Temp\temp_9ff883f0-88e3-469c-a942-092ca424001a.rpt: Access to report file denied. Another program may be using it.


It is enough to give read, write permission to NETWORK SERVICE user. crystal report create a temp file with guid for name in windows temp folder, so it needs write permission to the disk to make create that temp file.  


To come out from this problem give Read/Write Access to C:\Windows\Temp folder in Production server In windows server 2008(64bit), ASP.NET 3.5 development machine, no files are created when we run crystal reports from aspx pages. 


remove the line below from your web.config file

<identity impersonate="true"/>

No comments:

Post a Comment