[英]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. 在带有Crystal Report 13的Visual Studio 2010中,我的项目运行良好。
After I installed Visual studio 2015 community edition for my personal use. 我安装Visual Studio 2015社区版后供我个人使用。 When i opened my project and run in Visual studio 2010 it throws "JavaScript runtime error: 'bobj' is undefined". 当我打开我的项目并在Visual Studio 2010中运行时,它会抛出“JavaScript运行时错误:'bobj'未定义”。
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 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-未定义的JavaScript错误,和水晶报表查看器-不displaying.aspx
and I reinstalled and copied aspnet_client folder and paste into project. 我重新安装并复制了aspnet_client文件夹并粘贴到项目中。 Eventhough problem not yet solved. 尽管问题尚未解决。 I guess the error because i installed VS2015 community edition. 我想错误是因为我安装了VS2015社区版。
Please help me and im clueless. 请帮助我,我一无所知。
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. 当您安装VS2015时,它安装了.NET framework 4.6,这导致了可怕的“bobj未定义”错误。 Unfortunately, .NET 4.6 wiped out (or overwrote) earlier version of .NET - whatever comes with VS2010 in your case or VS2013 in my case. 不幸的是,.NET 4.6消灭了(或覆盖了)早期版本的.NET - 无论是在你的情况下VS2010还是在我的情况下VS2013。 You can uninstall .NET 4.6 and then "repair" VS2013, which reinstalled .NET 4.5.1 and the problem went away. 您可以卸载.NET 4.6,然后“修复”VS2013,重新安装.NET 4.5.1,问题就消失了。 Unfortunately, repairing VS2015 puts .NET 4.6 right back and the problem reappears. 不幸的是,修复VS2015使.NET 4.6正好运行,问题再次出现。
So the bottom line, you can either have VS2015 - or earlier version of Visual Studio without bobj error; 所以底线,你可以有VS2015 - 或没有bobj错误的早期版本的Visual Studio; but not both 但不是两个
Don't thank me - thank Steve :) 不要谢谢我 - 谢谢史蒂夫:)
Copy: 复制:
Solution_Directory\\aspnet_client\\system_web\\4_5_27\\crystalreportviewers13
To: 至:
Solution_Directory\\aspnet_client\\system_web\\4_6_81\\crystalreportviewers13
I had same issue but now everything work right. 我有同样的问题,但现在一切正常。
I hope this will helps. 我希望这会有所帮助。
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
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". 在这里,你会找到一个名为“crystalreportviewers13”的文件夹。 Copy it paste to the location of your solution. 将其粘贴到解决方案的位置。
2)In the head section of the page paste the following javascript refrence: 2)在页面的head部分粘贴以下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中对我有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.