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
A possible scenario is that the IIS Server web site is not defaulted to C:\inetpub\wwwroot as this is where by default Crystal installs it's application files in the aspnet_client\system_web\4_0_30319\crystalreportviewers13 folder.
So a possible answer is to set the website Physical Path to c:\inetpub\wwwroot
Add this reference to the crystal report javascript in your master page or page rendering the report:
<script src='<%=ResolveUrl("~/crystalreportviewers13/js/crviewer/crv.js")%>'type="text/javascript"></script>
You may visit the link below for details:
Crystal Reports Bobj is undefined and bobj.isObject is not a function in Visual Studio 2012 and 2013
This problem was difficult for me to solve.
My Configuration is VS 2010, CR 14.0.2000.0 version, Window Server 2008 R2, IIS 7. I got the solution. I tried almost all solutions given in net. And I have implemented all tricks. Finally report displayed by commenting the below line in web.config.
<add key="ResourceUri" value="/crystalreportviewers13"></add>
Now am removing one by one which I installed and checking which are the things exactly required.
I tried all below:
Restarted IIS when ever I did something.
First manually publish the rpt files into your folder on the server. If it works, then its simply a deployment issue. Try making sure the build action for the file when you click on it is "Content". Try that see if you get a bit further.
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://<server name>/aspnet_client/system_web/4_0_30319/crystalreportviewers13/images/buttonl.gif
- 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)