我安装了带有 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 上工作:
The solution is to work on IIS this way:
aspnet_client
文件夹从 c:inetpubwwwroot
文件夹复制到新网站根文件夹.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
在新网站内强>aspnet_client
that points to c:inetpubwwwrootaspnet_client
inside the new website可以分析问题
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(禁止)
%SYSTEMROOT%System32LogFilesW3SVC###
,WIN2008C:inetpublogsLogFilesW3SVC###
).%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.js
和 style.css
一些文件没有提供;wwwrootaspnet_client
文件夹中,但由于某些原因无法访问;crv.js
and style.css
some files were not served; wwwrootaspnet_client
folder, but for some reasons they cannot be reached; 我可以看到你使用不同版本的软件和不同的配置,但我认为你有同样的问题.
I can see that you use different versions of software and different configurations, but i think you have the same problem.
这篇关于IIS 的水晶报表问题 - (bobj 未定义,水晶报表不显示)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!