Crystal Reports 10 report Not working with VS2015; Error: Unhandled exception at line 83, 0x800a1391 - JavaScript runtime error: 'bobj' is undefined[Answered]RSS
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
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.
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.
None
0 Points
4 Posts
Crystal Reports 10 report Not working with VS2015; Error: Unhandled exception at line 83, 0x800a1...
Jul 09, 2017 09:02 AM|Tarique_bd|LINK
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?
All-Star
31362 Points
7055 Posts
Re: Crystal Reports 10 report Not working with VS2015; Error: Unhandled exception at line 83, 0x8...
Jul 11, 2017 02:35 PM|kaushalparik27|LINK
This error occurs when the app could not find the viewer files. I recommend to refer below threads discussing similar issue and solution:
[KaushaL] Blog Twitter [MS MVP 2008 & 2009] [MCC 2011] [MVP Reconnect 2017]
Don't forget to click "Mark as Answer" on the post that helped you
None
0 Points
4 Posts
Re: Crystal Reports 10 report Not working with VS2015; Error: Unhandled exception at line 83, 0x8...
Jul 17, 2017 09:10 AM|Tarique_bd|LINK
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>
</head>
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" %>
Old:
<%--<%@ 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!