IIS 的水晶报表问题 - (bobj 未定义,水晶报表不显示)

Crystal Report Issue with IIS - ( bobj is undefined , Crystal report not displaying )(IIS 的水晶报表问题 - (bobj 未定义,水晶报表不显示))

本文介绍了IIS 的水晶报表问题 - (bobj 未定义,水晶报表不显示)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了带有 VS 2010 的水晶报表 2010.我创建了一个水晶报表,它在本地主机中运行良好,但问题是一旦我将我的网站发布到 IIS,报表就永远不会显示.它只是显示一个空白页.我检查了我发布的文件夹,即使 .rpt 文件不存在.谁能告诉我如何解决这个问题?

I have crystal report 2010 installed with VS 2010.i have created a crystal report which is works fine in the localhost but the issue is once i publish my website to IIS the report is never displayed.it just display a blank page.i checked my published folder even the .rpt file is not there.can any one tell me how to resolve this issue?

推荐答案

解决方案

解决方案是以这种方式在 IIS 上工作:

Solution

The solution is to work on IIS this way:

  • aspnet_client 文件夹c:inetpubwwwroot 文件夹复制到新网站根文件夹.
  • Copy aspnet_client folder from c:inetpubwwwroot folder to the new website root folder.

或(第一个更容易,第二个更便于维护)

or (first one is easier, second one is better for maintenance)

  • 创建一个名为 aspnet_client 的虚拟目录,它指向 c:inetpubwwwrootaspnet_client 在新网站内强>
  • Create a virtual directory called aspnet_client that points to c:inetpubwwwrootaspnet_client inside the new website

可以分析问题

  • 使用客户端工具(浏览器的调试窗口)
  • using client tools (debug window of browser)

GET http://someserver:20080/aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/crv.js 403(禁止)
<代码>获取http://someserver:20080/aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/images/style.css 403(禁止)

  • 服务器工具(IIS日志,WIN2003放在%SYSTEMROOT%System32LogFilesW3SVC###,WIN2008C:inetpublogsLogFilesW3SVC###).
  • or server tool (IIS log , on WIN2003 is placed in %SYSTEMROOT%System32LogFilesW3SVC### on WIN2008 C:inetpublogsLogFilesW3SVC###).

2011-03-28 13:00:49 W3SVC701536 95.228.38.41 GET/aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/images/style.css - 20080 - 192.168.1.2 Mozilla/5.0+(兼容;+MSIE+9.0;+Windows+NT+6.1;+Trident/5.0) 403 6 64 错误!2011-03-28 13:00:49 W3SVC701536 95.228.38.41 GET/aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/crv.js - 20080 - 192.168.1.2 Mozilla/5.0+(兼容;+MSIE+9.0;+Windows+NT+6.1;+Trident/5.0) 403 6 64 错误!

2011-03-28 13:00:49 W3SVC701536 95.228.38.41 GET /aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/images/style.css - 20080 - 192.168.1.2 Mozilla/5.0+(compatible;+MSIE+9.0;+Windows+NT+6.1;+Trident/5.0) 403 6 64 Errore! 2011-03-28 13:00:49 W3SVC701536 95.228.38.41 GET /aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/crv.js - 20080 - 192.168.1.2 Mozilla/5.0+(compatible;+MSIE+9.0;+Windows+NT+6.1;+Trident/5.0) 403 6 64 Errore!

导致问题

Crystal Reports 运行时已安装,但您的应用程序未在默认网站下运行.

  • 在这两种情况下,我发现 crv.jsstyle.css 一些文件没有提供;
  • 这些文件由 CR 安装程序放置在 wwwrootaspnet_client 文件夹中,但由于某些原因无法访问;
  • 在我的情况下,原因是我创建了一个不同的网站(端口 20080)并且 aspnet_client 文件夹没有放在该网站内
  • In both cases i found that crv.js and style.css some files were not served;
  • these files are placed by CR installer in wwwrootaspnet_client folder, but for some reasons they cannot be reached;
  • In my case the reason is that i create a different website (port 20080) and aspnet_client folder is not placed inside that website

我可以看到你使用不同版本的软件和不同的配置,但我认为你有同样的问题.

I can see that you use different versions of software and different configurations, but i think you have the same problem.

这篇关于IIS 的水晶报表问题 - (bobj 未定义,水晶报表不显示)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:IIS 的水晶报表问题 - (bobj 未定义,水晶报表不显示)

基础教程推荐