SAP Knowledge Base Article - Public

1720670 - Crystal Reports Web viewer does not display on web form (Crystal Reports for Visual Studio 2010 )

Symptom

  • Web application using the Crystal Reports SDK for VS2010 is deployed to a server
  • Page holding the viewer is loaded, but the Crystal Report Viewer is not displayed

Environment

  • Crystal Reports for Visual Studio 2010
  • Visual Studio 2010

Cause

  • The Crystal Reports viewer folder is not configured correctly
  • The default CR runtime install (MSM or MSI) will only configure the viewer for a default application pool
  • When using a custom application pool, the viewer must be configured manually

Resolution

  1. Copy the folders under "\inetpub\wwwroot\aspnet_client\" and paste them under the  root of the custom web site
  2.  Add the following to the application web.config file:
<configSections>
    <sectionGroup name="businessObjects">
      <sectionGroup name="crystalReports">
        <section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler"/>
      </sectionGroup>
    </sectionGroup>
  </configSections>
 
  <businessObjects>
    <crystalReports>
      <crystalReportViewer>
        <add key="UseBrowserLocale" value="true"/>
        <add key="resourceURI" value="~/aspnet_client/system_web/4_0_30319/crystalreportviewers13" />
      </crystalReportViewer>
    </crystalReports>
  </businessObjects>

Keywords

blank empty CR2010 2010 CR4VS2010 CR4VS VS2010 NET2010 Crystal Reports for .NET Framework 4.0 crforvs 13 view show render , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , How To

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio