Symptom
- View a Crystal Report in a .NET web application.
- The report contains logos or images.
- A red x is displayed instead of the images.
Environment
- Visual Studio 2008
- Crystal Reports Basic for Visual Studio 2008
- .NET Framework 2.0
- IIS 6
Cause
- The Crystal Reports .NET SDK makes use of an httpHandler to manage images/logos/pictures in a report.
- Requests for report images are directed to CrystalImageHandler.aspx, along with a query string variable dynamicimage. Like this:
- All requests directed to CrystalImageHandler.aspx are directed to CrystalDecisions.Web.CrystalImageHandler. There is no physical file called CrystalImageHandler when using the Microsoft .NET 2.0 Framework.
- The red x is displayed because the CrystalImageHandler is missing in the web.config file.
Resolution
- Modify the web.config file in your web application directory to include the required CrystalImageHandler settings. Below is a sample of what is required.
- Also, find a sample web.config file attached to the bottom of this article.
<configuration>
<appSettings>
<add key="CrystalImageCleaner-AutoStart" value="true"/>
<add key="CrystalImageCleaner-Sleep" value="60000"/>
<add key="CrystalImageCleaner-Age" value="120000"/>
</appSettings>
<system.web>
<httpHandlers>
<add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
</httpHandlers>
</system.web>
</configuration>
Keywords
KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem
Product
SAP Crystal Reports, version for Visual Studio .NET 2008
Attachments
web.zip |