问题描述
我安装了带有 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_clientfolder fromc:inetpubwwwrootfolder 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_clientthat points toc:inetpubwwwrootaspnet_clientinside 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 WIN2008C: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.js和style.css一些文件没有提供; - 这些文件由 CR 安装程序放置在
wwwrootaspnet_client文件夹中,但由于某些原因无法访问; - 在我的情况下,原因是我创建了一个不同的网站(端口 20080)并且 aspnet_client 文件夹没有放在该网站内
- In both cases i found that
crv.jsandstyle.csssome files were not served; - these files are placed by CR installer in
wwwrootaspnet_clientfolder, 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 未定义,水晶报表不显示)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!


大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)