Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Crystal reports display a blank page in C#, asp.net

I have a website in 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. It just displays a blank page. Can anyone tell me how to resolve this issue? Thanks

like image 278
Shailendra R Kumar Avatar asked Sep 16 '11 17:09

Shailendra R Kumar


1 Answers

If you installed your application in a website different from Default WebSite, try this:

Solution

  • Copy aspnet_client folder from c:\inetpub\wwwroot folder to the new website root folder.

or in IIS:

  • Create a virtual directory called aspnet_client that points to c:\inetpub\wwwroot inside the new website.

Cause of the problem

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. 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.

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

like image 190
Emanuele Greco Avatar answered Sep 17 '22 23:09

Emanuele Greco