Reputation: 77
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
Reputation: 12731
If you installed your application in a website different from Default WebSite
, try this:
aspnet_client
folder from c:\inetpub\wwwroot
folder to the new website root folder.or in IIS:
aspnet_client
that points to c:\inetpub\wwwroot
inside the new website.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
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
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
Reputation: 27
Perfect! The solution is to work on IIS this way:
OR
Thank you so much
Upvotes: 1
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