【发布时间】:2018-08-31 21:12:02
【问题描述】:
有人知道上面的问题是什么吗? 我正在使用 Visual Studio 2013 和 Crystal Report v13。我尝试将其部署到本地主机(IIS)并浏览它,除非我使用 Fire Fox,否则不会加载 Crystal Report。我在谷歌浏览器、IE、Safari 和opera 都试过了,也没有加载。
非常感谢您的评论!
【问题讨论】:
有人知道上面的问题是什么吗? 我正在使用 Visual Studio 2013 和 Crystal Report v13。我尝试将其部署到本地主机(IIS)并浏览它,除非我使用 Fire Fox,否则不会加载 Crystal Report。我在谷歌浏览器、IE、Safari 和opera 都试过了,也没有加载。
非常感谢您的评论!
【问题讨论】:
我认为当您尝试从 Windows 机器中的本地 Internet 信息服务器访问 Crystal Report 时,查找资源存在问题。 因此,对于解决方案,请尝试将 IIS 目录中的水晶资源文件夹设置为:
C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13
并在您的配置文件中进行配置:
<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>
希望这能帮助你解决它。
【讨论】: