Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Crystal Reports 13 bobj is undefined JavaScript Error after installed visual Studio 2015 community edition

In Visual studio 2010 with Crystal Report 13 my project worked fine.

After I installed Visual studio 2015 community edition for my personal use. When i opened my project and run in Visual studio 2010 it throws "JavaScript runtime error: ‘bobj’ is undefined".

enter image description here enter image description here I surfed some website

http://www.mahadera.com/error-0x800a1391-javascript-runtime-error-bobj-is-undefined/ http://www.aspsnippets.com/Articles/Crystal-Reports-13-Visual-Studio-2010-Issue-with-IIS---bobj-is-undefined-JavaScript-Error-and-Crystal-Report-Viewer-not-displaying.aspx

and I reinstalled and copied aspnet_client folder and paste into project. Eventhough problem not yet solved. I guess the error because i installed VS2015 community edition.

Please help me and im clueless.

like image 986
Ayyappan Sekaran Avatar asked Jul 29 '15 12:07

Ayyappan Sekaran


People also ask

Do you need Visual Studio for Crystal Reports?

In developer edition .exe, you require Visual Studio. And, if you want to run crystal report on release mode without installing visual studio for the client, then you can use . msi file of crystal report runtime from this site. This file does not require an install of Visual Studio.

Is Crystal Reports part of Visual Studio?

SAP Crystal Reports, version for Visual StudioOur report design software installs directly into Visual Studio. With this fully functional – and free software, you'll spend less and save time developing rich, interactive reports.


2 Answers

We figured out the root cause of the problem. When you installed VS2015, it installed .NET framework 4.6, which is causing the dreaded "bobj not defined" error. Unfortunately, .NET 4.6 wiped out (or overwrote) earlier version of .NET - whatever comes with VS2010 in your case or VS2013 in my case. You can uninstall .NET 4.6 and then "repair" VS2013, which reinstalled .NET 4.5.1 and the problem went away. Unfortunately, repairing VS2015 puts .NET 4.6 right back and the problem reappears.

So the bottom line, you can either have VS2015 - or earlier version of Visual Studio without bobj error; but not both

Don't thank me - thank Steve :)

like image 189
Felix Avatar answered Sep 29 '22 11:09

Felix


1) First of all go to your root directory path in my case it is: C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319

here you will find a folder named "crystalreportviewers13". Copy it paste to the location of your solution.

2)In the head section of the page paste the following javascript refrence:

make sure the src is pointing to your local folder.

after that run your page.

I have the same problem, and this works good for me in VS2015.

like image 37
MYLRAJ Avatar answered Sep 29 '22 12:09

MYLRAJ