1216305 - Image appears as red 'X' when viewing a report using VS .NET web application

SAP Knowledge Base Article - Public

1216305 - Image appears as red 'X' when viewing a report using VS .NET web application

Symptom

A Visual Studio .NET (VS .NET) web application references either version 9.1.5000 or 9.2.3300 of the 'crystalDecisions.Web' DLL.

When the VS .NET web application uses the Crystal Reports viewer control to preview a report that contains an image, the image appears as a red 'X'.

Why does the report image appear as a red 'X', and how can it be displayed successfully?

Resolution

The report image appears as a red 'X' because the VS .NET web application is setup in the 'web.config' file to use 'Forms Authentication'. As a result the web application is unable to authenticate 'crystalimagehandler.aspx'.

To display the image successfully add the following code after the <system.web> tag in the 'web.config' file:

====================

NOTE:

If the VS .NET web application is referencing 'crystaldecisions.web.dll' version 9.1.5000 then modify the 'web.config' file located in the 'CrystalReportWebFormViewer2' virtual directory.

If the VS .NET web application is referencing 'crystaldecisions.web.dll' version 9.2.3300 then modify the 'web.config' file located in the 'crystalreportviewers' virtual directory.

====================

<configuration>

<system.web>

....

<authorization>

<allow users="*"/>

</authorization>

....

</system.web>

</configuration>

After modifying the 'web.config' file the images now appear when previewing the report in the VS .NET web application.

Keywords

DOT NET DOTNET CRYSTALIMAGEHANDLER RESOURCE NOT FOUND MISSING Crystal Enterprise Report Application Server .NET Crystal Report Viewer Control Images do not appear , c2013824 , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , Problem

Product

SAP Crystal Reports 9.0