Getting a blank page after publish Crystal Reports 13 ( Visual Studio 2010 ) to IIS?

Why I am getting a blank page after publishing Crystal Reports 13 ( Visual Studio 2010 ) to IIS?\

 

The issue does not occur locally but happens when you host the site on a server in IIS. Actually, the cause of the issue is that Crystal Report is unable to find the required JavaScript (JS) files to render the report in the browser

 

Solution 1:

1. Please downloading and install runtime for Crystal Reports 13 for Visual Studio 2010. (You can skip this step if you already did this before and your application is working locally).

2. Once the runtime is installed. Crystal Reports will install the required support files in the location of your local computer:
C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13

3. Please copy the entire Crystal Report Support folder C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13  to your Website's  SITE_ROOT\aspnet_client\system_web\4_0_30319 folder.

4) If you do not have a   \aspnet_client\system_web\4_0_30319 folder in your website's root. Please create them manually and then copy the crystalreportviewers13 into it.
 
The version number '4_0_30319' is not fixed, it might be changed because of the asp.net version. You can try to change this folder name to 4_6_1069 if 4_0_30319 not work.
 
Solution 2:
 
Add the following code to web.config of the web application.
 
<configSections>
    <sectionGroup name="businessObjects">
      <sectionGroup name="crystalReports">
        <section name="rptBuildProvider" type="CrystalDecisions.Shared.RptBuildProviderHandler, CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, Custom=null" />
           <section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler" />
      </sectionGroup>
    </sectionGroup>
</configSections>
<businessObjects>
      <crystalReports>
        <rptBuildProvider>
          <add embedRptInResource="true" />
        </rptBuildProvider>
        <crystalReportViewer>
              <add key="ResourceUri" value="~/crystalreportviewers13" />
      </crystalReportViewer>
      </crystalReports>
</businessObjects>



 

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

SQL server- network related or instance-specific error happened while connection establishing

  Instance-specific or network related error happening while connecting to SQL server   Please...

OleDB connection string examples

OleDB connection string examples MS Access (Jet) "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA...

Do you allow custom COM components?

Do you allow custom COM components? We are not offering to install the custom COM components...

Error when accessing a WCF services

Error when accessing a WCF services Error when accessing a WCF service: "IIS specified...

How to cache static contents to client with UseMaxAge?

You can consider to caches static contents to the client with UseMaxAge if your website has too...

Powered by WHMCompleteSolution