Crystal Report Engine RunTime Error

jjj picture jjj · Jan 16, 2012 · Viewed 13k times · Source

Hello,

I convert the project visual studio & the crystal reports to Version 10

but the server has the old version so i have to add the old references

IT show the report but i'm having a problem on printing and engine issue

Crystal Report Bar Engine :

Report Bar

Server message :

Server Error Message

Local message :

Server Error in '/' Application. 
-------------------------------------------------------------------------------- 

HTTP Error 404 - Not Found. 

-------------------------------------------------------------------------------- 
Version Information: ASP.NET Development Server 10.0.0.0

Tried :

-- Re install the Crystal Report 10 .

-- Delete all Crystal Report references and add it again .

-- Clean the Solution , remove the references and add it again .

(~ latest result (current status):

I realized that i have install CRforVS_13_0_2 that have the package CRRuntime_64bit_13_0_2.msi and my computer is 32-bit operating system .. so i install CRRuntime_32bit_13_0_2.msi and it finished the installation unlike CRRuntime_64bit_13_0_2.msi .. but the problem with Business Objects still there as it shown in the "Crystal Report Bar Engine " image . ~)

Note : If i add the new references of crystal report ,it sure work on the local but not on

the server . So i have to work with the old references.

HELP .

Answer

Emanuele Greco picture Emanuele Greco · Jan 16, 2012

Analyze the problem

It's possible to analyze the problem, and find a 403 (Forbidden) error

  • using client tools (debug window of browser)

GET http://someServer:20080/aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/crv.js 403 (Forbidden)
GET http://someServer:20080/aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/images/style.css 403 (Forbidden)

  • or server tool (IIS log , on WIN2003 is placed in %SYSTEMROOT%\System32\LogFiles\W3SVC###\).

2011-03-28 13:00:49 W3SVC701536 95.228.38.41 GET /aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/images/style.css - 20080 - 192.168.1.2 Mozilla/5.0+(compatible;+MSIE+9.0;+Windows+NT+6.1;+Trident/5.0) 403 6 64 Errore! 2011-03-28 13:00:49 W3SVC701536 95.228.38.41 GET /aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/crv.js - 20080 - 192.168.1.2 Mozilla/5.0+(compatible;+MSIE+9.0;+Windows+NT+6.1;+Trident/5.0) 403 6 64 Errore!

Cause the problem

  • In both cases i found that crv.js and style.css some files were not served;
  • these files are placed by CR installer in wwwroot\aspnet_client folder, but for some reasons they cannot be reached;
  • In my case the reason is that i create a different website (port 20080) and aspnet_client folder is not placed inside that website

I can see that you use different versions of software and different configurations, but i think you have the same problem.

Solution

The solution is to work on IIS this way:

  • Copy aspnet_client folder from c:\inetpub\wwwroot folder to the new website root folder.

or (this one is better)

  • Create a virtual directory called aspnet_client that points to c:\inetpub\wwwroot inside the new website