Bobj is undefined – Crystal Reports

Hello All,

If you have been working with Crystal Reports and I could bet at least once you might faced the issue “Bobj” is undefined . This is most common error in using crystal reports. Recently I have faced this issue when I try to solve another technical issue on the crystal report.

At least from my experience and users experience in internet, “bobj” is one of well-known problem with CR.  Crystal reports products naming convention is another pain. It is bit difficult to understand the CR products and features from their naming . Lets not worry about that now. Coming to the issue in hand, I am using Visual studio 2010, IIS7.0, Windows 2008 server and CR2008. I want to upgrade CR 2008 with latest SP5. So I have uninstalled the setup and rebooted the server and again installed the fresh version of SP5 full download. Here is link for all downloads of CR.

After un-installation of previous version, I forgot to delete all the CR folders , which caused lot of headache and I ran to “Bobj’ undefined issue and some of the folders are not accessible etc. So finally cleaned up again and deleted all the left over folders and rebooted. Installed SP5 again. The reports started working fine in the deployed link. I mean we have web application which is published in the machine and reports are working. Here I have faced one more issue, though not sure about the cause, when I generate a report, I got an error message “Unable to connect to Database…” ORA code ( I forgot the exact code) . In the .rpt files, I have used many database connections which is the concern. I have deleted all the unwanted connnections and reports are working fine from the same machine.

Now, real challenge started for me, when the application is accessed from outside, reports are showing “BobJ” is undefined error. I could not figure out the reason for this. I was under assumption that if reports accessed from IIS then it accessed from everywhere in the same network. But it was not the case. In order find the issue, I have gone through some of the forums .. here is main link . This really helped me in fixing the issue. This blog post is extensive enough to help to fix the issue. Let me write a solution which worked for my case.

Issue: Missing “crystalreportviewers12” folder in the C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319.

Fix : Copy the entire ‘crystalreportviewers12’ from crystal report installed path. “D:\Program Files\Common\4.0” to C:\inetpub\..

This is helps in resolving the issue of accessing the crystal reports from the web application outside the network.

Quick check list for this issue:

1. Check CR is installed correctly. Delete all CR folders after un-installation. Especially under IIS. (C:\inetpub\wwwroot)

2. Install complete version of CR’s.

3. Check whether CR web site is created under IIS.

4. Check for missing folder C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319

5. Under Application Pools – Enable 32 Bit applications to TRUE (if it is integrated mode)

Choosing right product is important SDK is very important for crystal reports. Here is link for choosing SDK.

Hope this information really helps to users on this specific case.




Tags: , ,

7 Responses to “Bobj is undefined – Crystal Reports”

  1. Antony Says:

    OH GOD, this problem really took me to death.
    My Configuration is VS 2010, CR 14.0.2000.0 version, Window Server 2008 R2, IIS 7.
    I got the solution. I tried almost all solutions given in net. And i have implemented all tricks. Finally report displayed by commenting the below line in web.config.

    Now am removing one by one which i installed and checking which are the things exactly required.
    I tried all below:
    Installed CR Runtime for CRRuntime_32bit_13_0_4 and CRRuntime_64bit_13_0_4.
    Later i removed CRRuntime_32bit_13_0_4 still it works.
    Placed the aspnet_client folder inside WWWRoot folder.
    Placed the aspnet_client folder inside my application folder.

    Restarted IIS when ever i did something.
    Thanks for all posts and hope this may help others

  2. spandana Says:

    This is nice explanation to fix the error thank you

  3. spandana daram Says:

    thanks you its help me to rectify my error

  4. t.hamdy91 Says:

    What is the certain files will be adding from “crystalreport13” folder

  5. Muhammad Ali Says:

    I got solution for your problem,Please try to my step by step.
    For my version all seem your.

    1. You need to use Web Application Project,No Website Project because Web App will combine DLL to project also.
    2. Copy C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319\crystalreportviewers13 (you’ll got it when you install -CRforVS_redist_install_32bit_13_0.exe) To your project such as (ProjectName/crystalreportviewers13)
    3. copy this below to your web.config


    3.4 Publish your web application with FTP Mode to your any folder,and copy this publish to your web server then TEST it!

    Please try to do this,if you have any problem please post your error again,I’ll review it in soon.

  6. pulau tidung Says:

    With havin so much written content do you ever run into any issues of plagorism or copyright infringement?
    My blog has a lot of completely unique content I’ve either authored
    myself or outsourced but it seems a lot of it is popping it up all over the internet without my agreement.
    Do you know any ways to help stop content from being stolen?
    I’d truly appreciate it.

  7. click for source Says:

    Hey just waned to give you a quick heads up.
    Thhe text in your content seem to be running off the screen in Chrome.
    I’m not sure if this is a formatting issue or something to do with
    broowser compatibility but I figured I’d post to let you know.
    The style and design look great though! Hope you get the problem resolved soon. Kudos

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: