Skip to Content

How do I resolve “’bobj’ is undefined” issue?

Once I deployed a web application on the production machine, to my dismay I noticed that Crystal Reports could not turn up. I checked the runtimes installed on my machine, references in my project(s) & web.config file. I redeployed my application, however could not find the answer to “Why the reports would not turn up?”

I started cursing ‘gremlins’ for this, as everything was working on my development machine. This is one of the most common errors which users usually face while they try to access the crystal reports through the web page.

Following are the symptoms of the error:

  • The Blank Page appears in the browser when a .NET Web application is run.
  • The title of the browser becomes “Untitled Page”.
  • The status bar of the browser shows “Done, but with errors on page” or “Done” with yellow (!) exclamation mark.
  • When the user clicks on the yellow (!) exclamation mark, Internet Explorer dialog box shows error: “Problem with this Web page might prevent it from being displayed properly or functioning properly. In the future, you can display this message by double-clicking the warning icon displayed in the status bar.”
  • Error : ‘bobj’ is undefined.

There are few reasons which lead to this error:

  1. Missing “crystalreportviewers12” folder in the custom website.
  2. Application pool is running under Integrated mode when IIS 7 is used.
  3. Wrong value assigned to the key called “resourceURI” .
  4. The error ‘bobj Undefined’ occurs in development machine as the .NET  Framework could not find the files needed by Crystal Report Viewer at  the specified location in the Windows folder.

Following are the solutions to the above scenarios:

  1. Copy the folder “crystalreportviewers12″ from “C:Inetpubwwwrootsystem_web2_0_50727” under “Default Website” to the “Custom Website” directory in IIS. Or, create a virtual directory pointing ‘aspnet_client’ folder in the custom web site directory.
  2. In the IIS Manger, select the Application Pool and Basic Settings. Under Managed Pipeline Mode, change Integrated Mode to Classic Mode.
  3. The value of resoureURI should be “~/crystalreportviewers12” not “/crystalreportviewers12”.
  4. Copy the CrystalReportViewers12 folder from
    “C:Program FilesBusiness ObjectsCommon4.0” and paste it to “C:WindowsMicrosoft.NETFrameworkv3.5ASP.NETClientFiles”.

          Note: Framework may vary as per the Visual Studio version used.

This blog targets Crystal Reports 2008 (12.x) but can be applied to other versions of Crystal Reports as well. If there are any other scenarios which lead to error, they can be brought to notice by adding a comment with the resolution (if any). Please do not forget to ask questions on the SAP Crystal Reports, version for Visual Studio. If this does not help, please consider purchasing the single case.

I would suggest checking the SAP Crystal Reports, version for Visual Studio, before posting any questions and checking KBase as a solution may exist.

Additional Resources (SAP Knowledge Base Articles):

13 Comments
You must be Logged on to comment or reply to a post.
      • No it doesn’t.  We have the problem with VS 2013, half the solutions you post don’t even make sense!  We have no “C:Program FilesBusiness ObjectsCommon4.0” folder.  We have a “C:Program Files\Business Objects\Common\2.8 but under it is only a bin directory, no crystalreportviewers of any version.  What is resourceURI and how we set it?  What is “Custom Website” in IIS? I see this problem has been around since January of 2011!  Really, the software has gone thru a major version upgrade and at least 9 service packs, can’t you fix the problem not just put out a blog on how to patch it?

        • If you have “C:Program Files\Business Objects\Common\2.8 and not “C:Program FilesBusiness ObjectsCommon4.0”, then you are using “Crystal Reports Basic for Visual Studio 2008”, not “SAP Crystal Reports, developer version for Microsoft Visual Studio”. E.g.; the 1st thing you have to get straight, is the version of CR you are working with. Second, create a Discussion and ask a question rather than attacking a perfectly good solution for a version of CR that does not apply to you… E.g.; there is a difference between “Comment” and a Question. Furthermore, posting a question as a comment assumes that Saurabh still monitors this blog. Which BTW., he does not…

           

           

          – Ludek

          Senior Support Engineer AGS Product Support, Global Support Center Canada

  • I’m wondering instead spending time to answer and post articles why don’t use the same time to actually improve crystal reports?
    Why this stupid BOBJ is not handled better?
    We need more accurate err messages or CR needs to be more intelligente.
    We are wasting sooooo much time on this issue we are now searching for other solutions to create our reports.