on 10-14-2013 7:51 PM
After a great deal of hardship, I finally got Crystal Reports installed and integrated with VS2012. Despite multiple attempts to install and re-install this program, it took several tries and the removal of all previous versions to get the Reports to show up in VS2012. Once I got it all done, I started getting this error regarding bobj - and how it was undefined. This went on for days. Finally, quite by accident, I noticed that crystalreportsviewers12 had become crystalreportsviewers13. I changed all of the references to crystalreportsviewers (notice the absence of the number), and I stopped getting errors that 'bobj' was undefined.
Well, now it is defined....
Unfortunately, it does not work, and I have no idea what I am looking for to make it work. In VS2010, it took forever to get Crystal Reports working, but we finally did. Now we're two weeks into the VS2012 Upgrade, and there is NO WAY to make it work, as we have no idea what bobj wants or why it cannot handle the property or method it is producing errors about.
The line of offensive code is:
if (!bobj.isObject(json))
Apparently, it want's something other than null. I have no idea how to give it what it wants...
followed by:
bobj.crv.stateManager.setComponentState('MainContent_CrystalReportViewer1__UI',eval('('+document.getElementById('__CRYSTALSTATEctl00$MainContent$CrystalReportViewer1').value+')'));
Now something tells me that this is an easy fix if I knew what I was looking for, but I do not. This is not an error I was expecting to encounter. When we used VS2010, once we had the versions on both server and development matched, it worked like clockwork. Now we just have a broken intranet. When I place it on the actual development site, I do not see errors, but I do get a blank report that looks like the picture attached.
Hi Todd,
Try this.
Run process monitor with your application till it throws the error.
Search the ProcMon log for 'crv.js', this will tell you where the app is looking for the CR viewer files.
Now manually copy the crviewers folder from CR installation directory to this location from log.
Rename the folder to crystalreportviewers13.
Thanks,
Bhushan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I can't tell you why, but renaming everything to crystalreportviewers13 and copying over the files DID fix the bobj being undefined issue. No idea why that did that. However, once the error went away, my report (in DEVELOPMENT VIEW, I have not pushed it to the PRODUCTION server) shows, instead of a report, a series of grey vertical lines. Like it is working, but not quite all the way. But you DID fix the BOBJ error.
Note to self and others: DO NOT CHANGE the crystalreportviewers13 directory, as that is necessary for it to work properly. You may have to copy things into it, but do not change the directory itself.
Did get a chance to push it to the production server. No more crashes or errors, but it does say load report failed....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I actually downloaded ProcMon, and it is a very cool app, but I couldn't find a reference to the bobj anywhere, I think I popped the log over to you. On the upside, I got my ORIGINAL Reports to run when everything got renamed the crystalreportsviewers13, and on BOTH server and development box both had the files from the asp_client thing copied over. Once both versions were exact and it matched. My Old CR reports came up Golden! The viewers directory was critical.
Of course...none of my NEW reports work. I just get database load failed....Oh well, that's an adventure for another thread. But thanks Bhushan, at least the CRISIS has been averted.
FOR THOSE READING WHO HAD THIS ERROR (Or any other VS2012 issue):
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.