【问题标题】:Crystal Reports for VS 2010 Redistributable installed - and not workingCrystal Reports for VS 2010 Redistributable 已安装 - 但无法正常工作
【发布时间】:2011-09-28 14:07:33
【问题描述】:

我有一个使用水晶报表的 .net 项目。我正在使用 VS2010 并针对 .net 3.5 框架。一切都可以在我的开发机器上运行,但不能在生产 Web 服务器上运行。我已经在我的 Web 服务器上安装了 SAP Crystal Reports 32 位可再发行包(用于 .NET 框架的 SAP Crystal Reports 运行时引擎)。

我仍然收到一个异常提示“未定义类型'ReportDocument'。”

除了安装可再发行组件以使我的站点识别诸如 ReportDocument 之类的 Crystal Reports 对象之外,我是否需要做任何其他事情?

<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <probing privatePath="bin;bin\HttpModules;bin\Providers;bin\Modules;bin\Support;" />
        <dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
            <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
        </dependentAssembly>
        <dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
            <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
        </dependentAssembly>
        <dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
            <assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4" />
            <bindingRedirect oldVersion="2008.0.0.0-2020.0.0.0" newVersion="2010.02.0713.35" />
        </dependentAssembly>
    </assemblyBinding>
</runtime>

【问题讨论】:

  • 您可以发布您的 web.config 的运行时部分吗?

标签: asp.net crystal-reports


【解决方案1】:

您应该手动或通过阅读对 CrystalDecision 的引用将以下内容包含在“assemblyBinding”部分中。

<dependentAssembly> 
<assemblyIdentity name="CrystalDecisions.CrystalReports.Engine"    publicKeyToken="692fbea5521e1304" culture=""/> 
<bindingRedirect oldVersion="14.0.2000.0" newVersion="12.0.2000.0"/> 
</dependentAssembly> 
<dependentAssembly> 
<assemblyIdentity name="CrystalDecisions.Shared" publicKeyToken="692fbea5521e1304" culture=""/> 
<bindingRedirect oldVersion="14.0.2000.0" newVersion="12.0.2000.0"/> 
</dependentAssembly> 
<dependentAssembly> 
<assemblyIdentity name="CrystalDecisions.ReportSource" publicKeyToken="692fbea5521e1304" culture=""/> 
<bindingRedirect oldVersion="14.0.2000.0" newVersion="12.0.2000.0"/> 
</dependentAssembly> 
<dependentAssembly> 
<assemblyIdentity name="CrystalDecisions.Web" publicKeyToken="692fbea5521e1304" culture=""/> 
<bindingRedirect oldVersion="14.0.2000.0" newVersion="12.0.2000.0"/> 
</dependentAssembly> 
<dependentAssembly> 
<assemblyIdentity name="CrystalDecisions.Enterprise.Framework" publicKeyToken="692fbea5521e1304" culture=""/> 
<bindingRedirect oldVersion="14.0.2000.0" newVersion="12.0.1100.0"/> 
</dependentAssembly> 
<dependentAssembly> 
<assemblyIdentity name="CrystalDecisions.Enterprise.InfoStore" publicKeyToken="692fbea5521e1304" culture=""/> 
<bindingRedirect oldVersion="14.0.2000.0" newVersion="12.0.1100.0"/> 
</dependentAssembly>

【讨论】:

  • 谢谢!因为我使用的是版本 13 而不是 12,所以我不得不稍微修改一下,但这是基本修复。
【解决方案2】:

听起来您需要将 CrystalDecisions.CrystalReports.Engine 作为解决方案中的参考。

【讨论】:

    猜你喜欢
    • 2011-12-18
    • 2017-10-05
    • 2015-02-05
    • 2015-03-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多