Skip to Content
0
Former Member
Nov 18, 2011 at 02:18 PM

Crystal Report Viewer Microsoft JScript runtime error

102 Views

When I use the crystal viewer control to render a report on the screen I receive the following error message:

Microsoft JScript runtime error: Object doesn't support property or method 'isObject' ... and the following line is hilighted:

if(!bobj.isObject(json)).

Here is the markup for the test page I'm using

{<body>

<form id="form1" runat="server">

<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"

AutoDataBind="true" ReportSourceID="crSource" />

<CR:CrystalReportSource ID="crSource" runat="server">

</CR:CrystalReportSource>

</form>}

I believe I set all info on crSource correctly (report path etc ...) because If I remove the Crystal reports viewer from the page and just use the crsource (i.e crptSource.ReportDocument.ExportToHttpResponse ...) I can export the report OK. Its only when I have the crViewer on the page Is when I recieve this error.

Web Config

<assemblies>

<add assembly="CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />

<add assembly="CrystalDecisions.Shared, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

<add assembly="CrystalDecisions.ReportSource, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

<add assembly="CrystalDecisions.Enterprise.Framework, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

<add assembly="CrystalDecisions.Enterprise.Desktop.Report, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

<add assembly="CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

<add assembly="CrystalDecisions.Enterprise.InfoStore, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />

<add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />

<controls>

<add assembly="CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagPrefix="CR" />

<http handlers>

<add path="CrystalImageHandler.aspx" verb="GET" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />

appsettings

<add key="CrystalImageCleaner-AutoStart" value="true" />

<add key="CrystalImageCleaner-Sleep" value="60000" />

<add key="CrystalImageCleaner-Age" value="120000" />

I am using crystal reports 2008, visual studio 2008, windows 7 pro, MS Sql Server 2005, IE9

I uninstalled crystal reports, and reinstalled crystal reports 2008 sp3 (Full build) - No help

When I goto help about visual studio it says crystal reports 2008 (No specific version info)

Assembly cache on the machine has

12.0.2000.0 and 12.0.1100.00 as the vast majority ... a few (Design and Engine) have older 10.5.3700 and so forth (There are so many)

I found this problem on the web with different solutions involving frame work folder or not having IIS setup to server the crystal reports viewer ... this is happening to me on my local development machine using the ASP.Net Develepoment server included with VS2008 ..

Any help you could give me would greatly be appreciated

Thanks in advance

Kevin