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:
- Missing “crystalreportviewers12” folder in the custom website.
- Application pool is running under Integrated mode when IIS 7 is used.
- Wrong value assigned to the key called “resourceURI” .
- 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:
- 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.
- In the IIS Manger, select the Application Pool and Basic Settings. Under Managed Pipeline Mode, change Integrated Mode to Classic Mode.
- The value of resoureURI should be “~/crystalreportviewers12” not “/crystalreportviewers12”.
- 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):
- 1203703 – Error: “‘Bobj’ is undefined” occurs while deploying ASP.NET 2.0 with Crystal Reports 2008 application.
- 1278952 – ASP.NET Error “BOBJ is undefined”.
- 1183065 – Error: “Done, but with errors on page” on a blank web page when viewing Crystal Report 2008 in a Visual Studio .NET 2005 Web application.
/community [original link is broken]
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
First, never meant any offense to anyone here... So, my apologies. But we are frustrated users on this point, you must have seen others even here. Secondly, I have installed "SAP Crystal Reports, developer version for Microsoft Visual Studio" at least twice now. In fact I used a link to SP 9 that you sent me yourself to install it, still no resolution of the problem. If it did not build the folder trees expected, I do not know why.
In any case, after using Procmon on a tip from Bhushan Hyalij , we determined that the crystalreportviewer(nn) directory needed to be in an ASPNET_CLIENT tree under the web root for IISExpress, which is usually the file location where the solution is stored. In our case D:\solutinname\ (ASPNET_Client\System_Web\4_0_30319). We had to create this whole tree manually and copy the crystalrepportviewers13 directory into this location to get it to work, but work it did.
Thirdly, I did create a discussion on this subject a few weeks ago, got absolutely nowhere. I have no way of knowing whether Saurabh still monitors this blog, only hoping to kick start some other ideas...
Can you post the url to the discussion you already created?
Screenshot of installed programs, note "SAP Crystal Reports, version for Microsoft Studio" ver 13.0.9.1312...
Sorry, but I'm a bit confused;
I am not sure if the issue is resolve or not as between all the posts you have made, I see three questions:
1)
? - answered as yes.2) Crystal Reports does not load aspnet_client files to proper IISExpress directory. (KBA 2007190 - publication pending)
. - this is answered in this Discussion:3) Has anyone actually fixed the "bobj is undefined" problem? Whis is marked as answered.
I realize desperate times call for desperate actions, but these are community forums. Not support as such, however dedicated support can be obtained here: Crystal Single Case Technical Support - SAP Business Objects US Online Store | SAP Online Store
1. Agree
2. IIS Express always worked with VS 2012, did not work with VS 2013. This got resolved with very last reply from Bhushan Hyalij that i rec'd today.
3. I have no idea why is it marked as answered, I cannot remember doing it.
Bottom line, I have a fix for the VS 2013 with IIS Express, it is cumbersome, but will work. So, thanks for the help.
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.
Thanks a ton. It saved me a lot...!!!
FINALLY! A straight answer that works! Thanks Saurabh