我有一个使用Crystal Reports版本10.2.3600.0开发的.NET Web应用程序,但生产服务器的版本为13.0.2000.0。
搜索互联网,发现我们可以执行此操作并将其投入使用:Building .NET Application for Different Versions of Crystal Report in Visual Studio 2010
但是,当我将这些行添加到web.config文件中时(通过替换正确的版本),应用程序会出现500错误。
开发服务器上正在运行的web.config文件是:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
<compilation debug="true">
<assemblies>
<add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.ReportSource, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Shared, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Enterprise.Framework, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<add assembly="CrystalDecisions.Enterprise.InfoStore, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
<!---->
</assemblies>
</compilation>
<customErrors mode="Off" />
</system.web>
<location allowOverride="true" inheritInChildApplications="true">
<appSettings>
<add key="CrystalImageCleaner-AutoStart" value="true" />
<add key="CrystalImageCleaner-Sleep" value="60000" />
<add key="CrystalImageCleaner-Age" value="120000" />
<add key="ResourceUri" value="~/aspnet_client/system_web/2_0_50727/crystalreportviewers115" />
<add key="vs:EnableBrowserLink" value="false" />
</appSettings>
<system.webServer>
<directoryBrowse enabled="false" />
<defaultDocument>
<files>
<clear />
<add value="index.aspx" />
<add value="default.aspx" />
<add value="index.html" />
<add value="index.php" />
<add value="Default.htm" />
<add value="Default.asp" />
<add value="index.htm" />
<add value="iisstart.htm" />
</files>
</defaultDocument>
</system.webServer>
</location>
</configuration>
希望在生产服务器上使用13.0.2000.0版本的水晶报告。请建议。谢谢。
答案 0 :(得分:0)