Resolving the error "'bobj' is undefined" with Crystal Reports
Every couple of months the Crystal Reports installed in an application here stops working (reports don't display) after the server that hosts it has been Windows Update'd with the wonderfully cryptic 'bobj' is undefined in the browser developer tools console. It turns out, when you look at the network traffic, that Crystal Reports is attempting to download some assets from /aspnet_client/system_web/4_7_3163/crystalreportviewers13/ instead of /aspnet_client/system_web/4_0_30319. In other words, when constructing the path to its assets that it drops in the shared folder it's using the currently installed version of .NET/ASP.NET to build the path rather than treating the version component as static / tracking where it was installed to.
How do I resolve this?
I've read reports that patching to the latest update for the version of Crystal Reports resolves this (but have not yet had opportunity to validate this), but in lieu of that you can either:
- Add a virtual directory that maps ~/aspnet_client/system_web/4_0_30319 to ~/aspnet_client/system_web/4_X_YYYYY
- Copy the 4_0_30319 directory into another directory called 4_X_YYYYY
Remember to substitute the new version being looked for where I've put X/YYYYY! Hitting F5 to reload your app should then work and download all the correct assets.
My skillset has matured somewhat since then, which you'll probably see from the posts here. You can read a bit more about me on the about page of the site, or check out some of the other posts on my areas of interest.