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
Here is the solution that worked for me after hours of frustration (do these after you have made sure copying folders as recommended by others did not work..):
Scenario: CrystalReportsViewer displays a blank browser screen (no viewer or any blank reports page) View source shows the entire report content with the viewer code in there Browser may or may not display a bobj is undefined error
Test:
Browse the folder http://
- If you cannot see the images then that is the same issue what crystalreportsviewer faces when displaying the reports
IIS Settings to change: Expand the folders of your website in IIS (7.0 or above) Select "aspnet_client" folder Select "Authentication" in the main page (Features View) Select "Anonymous access" and Enable using the Actions menu on the right pane (this is for for testing purpose ONLY, you can disable this later) Select "Handler Mappings" on the main pane (Features view) In the "Actions" menu on the right pane Click on "Revert to Inherited" Accept to revert when prompted for confirmation
Test again: Browse the folder http:///aspnet_client/system_web/4_0_30319/crystalreportviewers13/images/buttonl.gif - if you the image that you should might as well fix your report
At least I could not find this solution documented anywhere..
Note: Do not forget to disable the Anonymous access to the aspnet_client folder in IIS if you had done it to test (like said above)