水晶报表错误:bobj is not defined

后期安装了10版本的水晶报表,发布到服务器报的错误,本地则不需要配置

解决方案:

1.拷贝C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13 (先安装CRforVS_redist_install_32bit_13_0.exe) 到你的项目文件夹下(ProjectName/crystalreportviewers13)

2.配置WebConfig

<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>

你可能感兴趣的:(报表)