SAP Knowledge Base Article - Public

2007224 - Crystal Reports Web viewer displays embedded graphics as black squares

Symptom

  •  SAP Crystal Reports, developer version for Microsoft Visual Studio Web viewer used in Visual Studio 2013 displays embedded graphics as black squares.

Untitled1.png

Environment

  • SAP Crystal Reports, developer version for Microsoft Visual Studio (Service Pack 9) and above
  • Microsoft Visual Studio 

Reproducing the Issue

  • Cerate a new ASP .NET Web Forms Site.
  • Update an existing web project created pre MS Visual Studio 2013.

Cause

  • Microsoft.OWIN namespaces is causing authentication issue with the handler for CrystalImageHandler.
  • HTTP 301 error is what is being thrown.
  • The issue has been escalated for a fix.
  • Reference: ADAPT01725431

Resolution

  • The issue occurs when the application uses framework 4.5 or 4.5.1.
  • When using framework 4.0, all embedded graphics display as expected.
  • The issue also does not occur for Crystal Reports Web Project and blank web application.
  • As this is an issue with the Microsoft.OWIN namespaces, the ADAPT has been closed as "Not an SAP Issue".
  • However the following configuration adjustments will work around the the Microsoft.OWIN namespaces.

 

Website / Project RouteConfig.cs Action
ASP.Net Web Form Site In App_Code

Change to RedirectMode.offor Comment out settings.AutoRedirectMode = RedirectMode.Permanent

ASP.NET Web Application - Web Forms In App_Start

Change to RedirectMode.offor Comment out settings.AutoRedirectMode = RedirectMode.Permanent

ASP.NET Web Application - MVC In App_Start

Add routes.IgnoreRoute("{resource}.aspx/{*pathInfo}");

ASP.NET Web Application - Web Forms and MVC In App_Start

Change to RedirectMode.off or Comment out settings.AutoRedirectMode = RedirectMode.Permanent
And add routes.IgnoreRoute("{resource}.aspx/{*pathInfo}");

  • To create the RouteConfig.cs file create a new ASP .NET Web Forms Site.
  • The file will be in the project's App_Code folder.
  • When updating existing web applications, it is up to the developer to add the correctly formatted RouteConfig.cs file.

See Also

  • KBA:  2058498 - Red X instead of images using CR for Visual Studio 2013 ASP.NET application

Keywords

image picture pic vs crvs cr4vs 13 sp 9 sp9 show cr x , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , Problem

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio