[英]Crystal reports display a blank page in C#, asp.net
I have a website in vs2008. 我在vs2008有一个网站。 I have created a crystal report which works fine in the DEVELOPMENT environment.
我创建了一个在开发环境中工作正常的水晶报告。 But when I publish my website to IIS, the report is never displayed.
但是当我将我的网站发布到IIS时,报表永远不会显示。 It just displays a blank page.
它只显示一个空白页面。 Can anyone tell me how to resolve this issue?
谁能告诉我如何解决这个问题? Thanks
谢谢
If you installed your application in a website different from Default WebSite
, try this: 如果您在不同于
Default WebSite
的网站上安装了应用程序,请尝试以下操作:
aspnet_client
folder from c:\\inetpub\\wwwroot
folder to the new website root folder. aspnet_client
文件夹从c:\\inetpub\\wwwroot
文件夹复制到新网站根文件夹。 or in IIS: 或者在IIS中:
aspnet_client
that points to c:\\inetpub\\wwwroot
inside the new website . aspnet_client
的虚拟目录,该目录指向新网站内的 c:\\inetpub\\wwwroot
。 Using client tools (debug window of your browser) or server tool (IIS log) you will find that some required Crystal files like crv.js
and style.css
are not served. 使用客户端工具(浏览器的调试窗口)或服务器工具(IIS日志),您会发现某些必需的Crystal文件(如
crv.js
和style.css
未提供。 That's because these files are placed by CR installer in wwwroot\\aspnet_client
folder, but they cannot be reached from other websites installed on the same machine. 这是因为这些文件由CR安装程序放在
wwwroot\\aspnet_client
文件夹中,但是无法从安装在同一台计算机上的其他网站访问它们。
I can see that you use different versions of software and different configurations, but I think you have the same problem. 我可以看到你使用不同版本的软件和不同的配置,但我认为你有同样的问题。
Make sure Folder "2_0_50727" exists at C:\\inetpub\\wwwroot\\aspnet_client\\system_web or your SiteRootFolder\\aspnet_client\\system_web 确保C:\\ inetpub \\ wwwroot \\ aspnet_client \\ system_web或您的SiteRootFolder \\ aspnet_client \\ system_web中存在文件夹“2_0_50727”
if not exists copy the folder "4_0_30319" as "2_0_50727". 如果不存在,请将文件夹“4_0_30319”复制为“2_0_50727”。
Perfect! 完善! The solution is to work on IIS this way:
解决方案是以这种方式在IIS上工作:
OR 要么
Thank you so much 非常感谢
If you are using Submit button for viewing the report, make sure you effect a full postback on submit button click. 如果您使用“提交”按钮查看报告,请确保在“提交”按钮单击时生成完整的回发。 You will find that all pages in the report will work perfectly fine.
您会发现报告中的所有页面都能正常运行。
Note: Use Trigger with Update Panel to Effect the Full Post Back (The Control ID of the trigger should be the ID of the button). 注意:使用“触发器”和“更新面板”来影响完全回发(触发器的控件ID应该是按钮的ID)。
检查Crystal Report运行时版本,例如,如果安装版本13.0.1并且Visual Studio使用13.0.2,将显示报告但不会显示数据。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.