Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.
I m using Crystal report 13 from SAP...

I am able to run the web application on local machine and see the crystal report.

But once I publish the file and view on IIS on Server I am not able to see the crystal report after login

so i m trying following solution but it's not work for me...plz help me what to do...

1.

XML
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

    Copy the folders under "\inetpub\wwwroot\aspnet_client\" and paste them under the  root of the custom web site

     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>




2.

XML
Cause

This error message appears because application is not able to find crystalreportviewers13 folder.

Resolution

    Add below lines in 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>
Posted

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900