Skip to Content
0
Former Member
Dec 27, 2013 at 01:59 PM

0x800a1391 - JavaScript runtime error: 'bobj' is undefined error

3147 Views

Hi,

I am new to crystal reports. I have a requirement to display CR in ASP.Net web app.

I have installed SAP CR version for VS(13) in my machine.

runtime engine 64

Config :

window server 2008 r2(64)

.net framework 4

IIS Express 8

VS 2012

I have added a crystal report viewer control in my default page and given data source as "C:\sample.rpt"

web.config enteries:

<configSections>

<sectionGroup name="businessObjects">

<sectionGroup name="crystalReports">

<section name="rptBuildProvider" type="CrystalDecisions.Shared.RptBuildProviderHandler, CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral,PublicKeyToken=692fbea5521e1304, Custom=null" />

<section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler" />

</sectionGroup>

</sectionGroup>

</configSections>

<businessObjects>

<crystalReports>

<rptBuildProvider>

<add embedRptInResource="true"></add>

</rptBuildProvider>

<crystalReportViewer>

<add key="resourceURI" value="~/crystalreportviewers13" />

</crystalReportViewer>

</crystalReports>

</businessObjects>

My app pool is default app pool which is classic mode

i have copied CrystalReportViewers13 to my project working folder

I have chosen IIS web server instead of IIS express in my project properties.

When I run in debug mode, i get the following error

0x800a1391 - JavaScript runtime error: 'bobj' is undefined error

<script type="text/javascript">

//<![CDATA[

bobj.crv.stateManager.setComponentState('CrystalReportViewer1__UI',eval('('+document.getElementById('__CRYSTALSTATECrystalReportViewer1').value+')'));

WebForm_InitCallback();new bobj.crv.ViewerListener('CrystalReportViewer1__UI',new bobj.crv.AspDotNetAdapter("__doPostBack('CrystalReportViewer1','VIEW-CONTEXT')", "VIEW-CONTEXT", "__CRYSTALSTATECrystalReportViewer1","WebForm_DoCallback('CrystalReportViewer1','arg','cb','ctx','errcb',true)","4.0.30319.18055"));//]]>

</script>

Pls. let me know how to solve it.

Thanks.