SAP Knowledge Base Article - Public

2007190 - Error: JavaScript runtime error: 'bobj' is undefined

Symptom

  • Using Visual Studio 2013, IIS Express and SAP Crystal Reports, developer version for Microsoft Visual Studio (SP 9).
  • When running the project the following error is thrown:

 

Unhandled exception at line 69, column 1 in
http://localhost:60550/webform1.aspx

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

 

Untitled.png

Environment

  • SAP Crystal Reports, developer version for Microsoft Visual Studio (Service Pack 9).
  • Microsoft Visual Studio 2013.
  • IIS Express.

Cause

  • Crystal Reports installs the viewer folder (crystalreportviewers13) under C:\inetpub\wwwroot\aspnet_client\system_web.
  •  IIS Express in VS 2013 looks for it's global files in <user>\Documents\WebSites\<SiteName> .

Resolution

  • Copy the aspnet_client folder and it's subfolders within the development package.
  • E.g.; C:\tests\WebApplication1_images4.5\aspnet_client\system_web\4_0_30319\crystalreportviewers13
  • Add the following line under <appSettings> to the web.config:

 

  <add key="vs:EnableBrowserLink" value="false"/>

Keywords

iisexpress cr crvs cr4vs bobj.crv.writewidget web , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , Problem

Product

SAP Crystal Reports, developer version for Microsoft Visual Studio