安装 Visual Studio 2015 社区版后,Crystal Reports 13 bobj 未定义 JavaScript 错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/31700903/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-28 14:12:21  来源:igfitidea点击:

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

javascriptvisual-studio-2010crystal-reportsvisual-studio-2015

提问by Ayyappan Sekaran

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

在带有 Crystal Report 13 的 Visual Studio 2010 中,我的项目运行良好。

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

在我安装了 Visual Studio 2015 社区版供我个人使用之后。当我打开我的项目并在 Visual Studio 2010 中运行时,它会抛出“JavaScript 运行时错误:'bobj' 未定义”。

enter image description hereenter image description hereI 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

http://www.mahadera.com/error-0x800a1391-javascript-runtime-error-bobj-is-undefined/ http://www.aspsnippets.com/Articles/Crystal-Reports-13-Visual-Studio-2010- 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.

我重新安装并复制了 aspnet_client 文件夹并粘贴到项目中。虽然问题还没有解决。我猜这个错误是因为我安装了 VS2015 社区版。

Please help me and im clueless.

请帮助我,我一无所知。

采纳答案by Felix

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.

我们找出了问题的根本原因。当您安装 VS2015 时,它安装了 .NET framework 4.6,这会导致可怕的“bobj 未定义”错误。不幸的是,.NET 4.6 抹去了(或覆盖)了 .NET 的早期版本——无论你的情况是 VS2010 还是我的 VS2013。您可以卸载 .NET 4.6,然后“修复”VS2013,它重新安装了 .NET 4.5.1,问题就消失了。不幸的是,修复 VS2015 将 .NET 4.6 放回原处,问题再次出现。

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

所以最重要的是,您可以使用 VS2015 - 或更早版本的 Visual Studio,而不会出现 bobj 错误;但不是两者兼而有之

Don't thank me - thank Steve :)

不要感谢我 - 谢谢史蒂夫 :)

回答by Azzhag

Copy:

复制:

Solution_Directory\aspnet_client\system_web\4_5_27\crystalreportviewers13

Solution_Directory\aspnet_client\system_web\4_5_27\crystalreportviewers13

To:

到:

Solution_Directory\aspnet_client\system_web\4_6_81\crystalreportviewers13

Solution_Directory\aspnet_client\system_web\4_6_81\crystalreportviewers13

回答by Arpan Shah

I had same issue but now everything work right.

我有同样的问题,但现在一切正常。

  1. Uninstall framework 4.6. After uninstalling 4.6, I found VS didn't work. Removing .NET 4.6 uninstalled all of .NET 4.x.
  2. So I had to reinstall 4.0-4.5.x. This was accomplished through Windows Update. I then did a reboot and tried to run a website through VS and found that CR worked correctly.
  1. 卸载框架 4.6。卸载 4.6 后,我发现 VS 不起作用。删除 .NET 4.6 卸载了所有 .NET 4.x。
  2. 所以我不得不重新安装 4.0-4.5.x。这是通过 Windows 更新完成的。然后我重新启动并尝试通过 VS 运行一个网站,发现 CR 工作正常。

I hope this will helps.

我希望这会有所帮助。

回答by Ruu

I think this is finally fixed in SAP Crystal Reports, developer version for Microsoft Visual Studio - Service Pack 16

我认为这最终在 SAP Crystal Reports 中得到修复,Microsoft Visual Studio 的开发人员版本 - Service Pack 16

https://wiki.scn.sap.com/wiki/display/BOBJ/SAP+Crystal+Reports%2C+developer+version+for+Microsoft+Visual+Studio+-+Service+Pack+16+-+Fixed+Issues

https://wiki.scn.sap.com/wiki/display/BOBJ/SAP+Crystal+Reports%2C+developer+version+for+Microsoft+Visual+Studio+-+Service+Pack+16+-+Fixed+Issues

Incident 878969    Framework 4.6 causes CR for VS to create a unique folder path to the Crystalreportsviewer13 folder in IIS and IISExpress

More info in the following SAP thread:

以下 SAP 线程中的更多信息:

https://scn.sap.com/thread/3824701

https://scn.sap.com/thread/3824701

回答by MYLRAJ

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

1)首先转到你的根目录路径,在我的情况下是: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.

在这里您会找到一个名为“crystalreportviewers13”的文件夹。将其复制粘贴到解决方案所在的位置。

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

2)在页面的头部部分粘贴以下javascript参考:

make sure the src is pointing to your local folder.

确保 src 指向您的本地文件夹。

after that run your page.

之后运行你的页面。

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

我有同样的问题,这在 VS2015 中对我很有用。