Crystal Reports 10 report Not working with VS2015; Error: Unhandled exception at line 83, 0x800a1391 - JavaScript runtime error: 'bobj' is undefined RRS feed

  • Question

  • User1884246244 posted

    Hi there,

    I have a ASP .NET Web application which was developed using VS 2005 and All reports were developed using CR10. Now as part of our system up gradation, we moved to windows 10 and converted the converted the solution to VS 2015. And installed CR 13 which is integrated with VS2015. Now when ever I try to load the report is given Java Runtime Exception. 

    Unhandled exception at line 83, column 1 in http://localhost:50235/(S(0wr2a42r1afiaybxcapxntjb))/rpt_micrtextperssummury.aspx?ReportName=rpt_micrNtextpersSummury&FromDate=2017-06-01&ToDate=2017-06-30&IsMonthly=True&PrintingVendor=00000000-0000-0000-0000-000000000000
    0x800a1391 - JavaScript runtime error: 'bobj' is undefined

    Urgent Solution required?

    Sunday, July 9, 2017 9:02 AM


  • User1884246244 posted

    Hello Guys!

    I have found the solution searching the web. see https://www.aspsnippets.com/Articles/Crystal-Reports-Bobj-is-undefined-and-bobjisObject-is-not-a-function-in-Visual-Studio-2012-and-2013.aspx .

    Summury is, you have to copy "crystalreportviewers13" folder from C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319 to your Website Folder and add JavaScript reference (as given below) to every .aspx files having CrystalReportViewer Control.

    <head runat="server">
        <title>Report Page</title>
        <script src='<%=ResolveUrl("~/crystalreportviewers13/js/crviewer/crv.js")%>' type="text/javascript"></script>

    And if you have earlier version ref. to your web.conf under <compilation debug="true"><assemblies>.....</assemblies></compilation>; update those references. This is easy if you just remove the CrystalReportViewer Control from you page (off-course disable the tag ) and add a fresh one from tool box. (Shown below):

    New: Added Automatically after adding the CR control from the toolbox.

    <%@ register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>

    <%--<%@ Register Assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TagPrefix="CR" %>--%>

    Point to be remembered that CR version for VS 2015 must downloaded & installed.

    Hope this will help!

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, July 17, 2017 9:10 AM

All replies