1531003 - Error: bobj undefined - javascript error

SAP Knowledge Base Article - Public

1531003 - Error: bobj undefined - javascript error

Symptom

  • While running a custom .NET application from Visual Studio during development, following error message is seen when viewing a Crystal report:
       'bobj undefined'
  • Debugging the error, points to the following line of code in the web page's source, where the viewer control is placed.
    <script src="../aspnet_client/system_web/3_5/crystalreportviewers12/js/crviewer/crv.js" type="text/javascript"></script>
  • This code is appended by the viewer control when the Crystal Report Viewer is dropped on to the web form.

Environment

  • Visual Studio 2008
  • Crystal Reports 2008 SP2.
  • Web-application.

Cause

This error occurs in development machine because the .NET Framework could not find the files needed by Crystal Report Viewer at the specified location in the windows folder.

Resolution

Copy the CrystalReportViewers 12 folder from
"C:\Program Files\Business Objects\Common\4.0\"

and paste it to
"C:\Windows\Microsoft.NET\Framework\v3.5\ASP.NETClientFiles\"

Keywords

crv.js, dot net, .net, vs, cr.net , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem

Product

Crystal Reports 2008 V1