Shailendra R Kumar
Shailendra R Kumar

Reputation: 77

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

Upvotes: 6

Views: 17425

Answers (6)

Emanuele Greco
Emanuele Greco

Reputation: 12731

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.

Upvotes: 8

Anas Naguib
Anas Naguib

Reputation: 1116

Check the Crystal Report Run-time version, for example if you install version 13.0.1 and your Visual Studio uses 13.0.2 the report will display but not data will be displayed.

Upvotes: 0

Mushfiq Shaikh
Mushfiq Shaikh

Reputation: 31

Make sure Folder "2_0_50727" exists at C:\inetpub\wwwroot\aspnet_client\system_web or your SiteRootFolder\aspnet_client\system_web

if not exists copy the folder "4_0_30319" as "2_0_50727".

Upvotes: 3

alpert
alpert

Reputation: 27

Perfect! The solution is to work on IIS this way:

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

OR

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

Thank you so much

Upvotes: 1

Suresh
Suresh

Reputation: 11

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

Upvotes: 1

Justin
Justin

Reputation: 2103

You need to install the merge modules on the web server. You can download them from Here

Upvotes: 0

Related Questions