Crystal Reports images do not display in a web browser

I have some Crystal Reports (V10) in an application (.NET 1.1) that is inherited, which is deployed in four "identical" environments. In three environments, they work fine. In the fourth diagram, the graph is not visible in the web browser. They are displayed if you export reports.

The IT guys swear that everything is the same in all four environments, and I decided to solve this problem. I am not sure how to do this, as I cannot get to the servers to check anything for myself. But I do not see how this can NOT be an environmental problem.

It seems to me that Crystal has the necessary permissions to write the file and get it to render export versions of the report, but ASP WP cannot access the image file when rendering the page.

Thanks for any suggestions that may help you!

Solution From the IT guys: “We had to change the“ Execution permissions ”in the CrystalReportsViewer10 folder in IIS only from“ Scripts ”to“ Scripts and executables. All other sites have only “Scripts only” and theyre fine. "

+4
source share
5 answers

There should be an IIS virtual directory called "CrystalReportViewers115". I think the exact name varies between versions. This should be visible to your ASP.NET user. Start looking for environments that work, and see if this virtual directory is installed, and compare it to what's in the failover environment. As another check, you can enter the URL of the images in a browser and see them. To find out the URL, right-click on the image and select "Properties." For instance:
http: //localhost/crystalreportviewers/images/toolbar/export.gif
You should see the image when viewing the URL directly.

+3
source

I can solve this problem in dev enviroment by adding the following keys (handlers) to web.config:

<system.webServer> <handlers> <add name="CrystalImageHandler.aspx_GET" verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" preCondition="integratedMode"/> </handlers> </system.webServer> <system.web> <httpHandlers> <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/> </httpHandlers> </system.web> 
+7
source

Go to Start-> Programs-> Microsoft Visualstudio 2008-> Visual Studio Tools-> Visual Studio 2008 Command Prompt

and enter

aspnet_regiis -c


This will automatically copy the corresponding files ...

+2
source

Add the aspnet_client folder to the source folder of the site. Example:

 C:\inetpub\wwwroot\myapplication\aspnet_client\system_web\4_0_30319\CrystalReportWebFormViewer4 
+1
source

I recently ran into this problem: although my resolution was a bit different:

  • I tried to configure the handler in the web.config file, but this did not fix it.
  • I tried installing scripts and executables in IIS, but that did not fix it.

As soon as I went into the C: \ Program Files \ Common Files \ Crystal Decisions \ 2.5 \ crystalreportviewers10 folder and disabled user errors, I could see that the error came from the denied access problem on C: \ Windows \ Temp \

Then the solution was not to process or process or modify IIS to run scripts and executables to allow the network service to read permission on C: \ Windows \ Temp \

EDIT: I think I found another solution that does not require permission changes ... just set the virtual directory for aspnet_client; the level at which you choose this is very dependent on your IIS layout.

0
source

All Articles