Visual Studio 2012 Crystal Report not working on Windows Server 2012/ 0x800a1391 – JavaScript runtime error: ‘bobj’ is undefined

From the beginning of my career I developed many reports using crystal reports with VB (4, 5, and 6), ASP.NET (2003, 2008). Recently when I tried to do the same using visual studio 2012 & deployed solution to windows 2012 I face lot of issue. I was getting blank page instead of result. I search a lot & finally find the solution. Here I am going to put all the steps required to make the report in working condition.

  1. Go to “C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319” on the web server.
  2. Copy “crystalreportviewers13” folder & paste it to the application

  3. Add Following code to web.config file

<configSections>
<sectionGroup name=businessObjects>
<sectionGroup  name=crystalReports>
<section name=rptBuildProvider” type=CrystalDecisions.Shared.RptBuildProviderHandler,
CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral,PublicKeyToken=692fbea5521e1304,  Custom=null />
       <section  name=crystalReportViewer” type=System.Configuration.NameValueSectionHandler />
</sectionGroup>
</sectionGroup>
</configSections>

<businessObjects>
<crystalReports>
<rptBuildProvider>
<add embedRptInResource=true />
</rptBuildProvider>
<crystalReportViewer>
<add  key=ResourceUri” value=~/crystalreportviewers13 />
</crystalReportViewer>
</crystalReports>
</businessObjects>

Note: Some times<add key=ResourceUri” value=~/crystalreportviewers13 />work with ~ & in some cases without ~.

       Hopefully this will work for you.

Adil Hafeez Siddiqui, Master of Computer Science & Application (MCA) from Aligarh Muslim University (AMU), INDIA having 18+ years of experience. Currently working at Group IT, Al-Faisaliah Group, Riyadh, KSA as Application Development and System Integration Head . Exposure to SAP HANA, Business Objects 4.1 , Web Intelligence, SAP PI, SAP BI, SQL Server BI, MOSS 2013/2010/2007 (MS Certified), Project Server 2013/2010, Dot Net (VB+C#),SQLServer 2012, 2008, K2.NET, Crystal Report, KAPLAN eLearning , Salesforce (CRM), Hadoop (HIVE,PIG,HUE), Dell Boomi, Tableau etc. To improve my skills I completed PMP and ITIL certifications. Also, I completed MBA-IT (Distance Learning Program) from Punjab Technical University, INDIA. Still Eager to learn new technology & improve skills.

Posted in Crystal Report, Visual Studio 2012
40 comments on “Visual Studio 2012 Crystal Report not working on Windows Server 2012/ 0x800a1391 – JavaScript runtime error: ‘bobj’ is undefined
  1. Pablo says:

    Thanks, you save my life!

  2. mohamed emara says:

    thank you
    it really helped me 🙂

  3. Thank you so much
    Its great help 🙂

  4. Kenny Tsai says:

    It’s helpful!!!
    Thank you for saving me from dark. : )

  5. Seifer says:

    Thanks man, scripts really work.

  6. Manish says:

    Amazing it worked for me as well. Keep Rocking

  7. aamirsani says:

    thanks man it was a mess

  8. SNJay says:

    Thank you, this worked for me. Earlier tried lot other solutions, nothing worked.

  9. Julio Cesar Galvez says:

    Thanks for the post:

    I found myself a better workaround: Create a virtual directory named (or aliased) as “aspnet_client” inside your asp.net web site, and pointing to the original aspnet_client path (usually located at c:\inetput\wwwroot\aspnet_client\)

  10. surander says:

    Thank you

  11. ricky says:

    Good day!

    I am stopped at Step No. 2 because the “C:\inetpub\wwwroot\aspnet_client\system_web\4_0_30319″ has no file in it, i cant find crystalreportviewers13, 2_0_50727 folder does contain a version of crystal report 4. Do i need to reinstall something?

  12. ricky says:

    In my case, created the website using Visual Studio 2012, all is working fine in my local. When I deploy in on Windows Server 2008, it doesn’t work at all, stating problem with Crystal Report. On the server, there were already website with crystal report installed and they are working well. Maybe it is because of the upgraded crystal report used on my new website? What should I do?

  13. Maurer says:

    Thank you very much. I have not been able to move forward since I ran into this problem. Great work….

  14. Muhammad Asad Sukkurwala says:

    this really saved me a lot of trouble.. was going through the exact problem

  15. Mehmood Ayaz says:

    Thanks alot Finally your post did my work….

  16. Manjunatha Y C says:

    Thank You somuch

  17. Karthi says:

    Thanks it is very much useful !

  18. Zohair Ahmed says:

    Save my Life
    Your List Line only Helps me

    Note: Sometimes “” work with ~ & in some cases without ~.

    Im my Case Without ~ Save Me
    Thanks very Use full

  19. Thank You… 🙂 ,It has saved my time.

  20. Nisha yadav says:

    YOU are an angel…thank you soooooooooo much for saving my life

  21. Ignatius Chukwudi says:

    Thank you a great deal for the post… It saved me after a very long traumatic experience

  22. Suudi Mashruuc says:

    thanks a lot.
    Your List Line Helped me when i used without ~ or &

  23. Mike says:

    Thank you this helped me

  24. Fabio says:

    Thank you very much for your help. It’s works!!!

  25. Thank you very much …. It’s cool

  26. Hema says:

    Thanks a lot. It works great.

  27. Seth I Jaffe says:

    Working with Visual Studio 2015, I get web.config errors for the:

    Is the directly under the tag.?

    alternatively, you say ” Some times “<add key=“ResourceUri” value=“~/crystalreportviewers13“ ". Where would that go.

    • Hi Seth, This issue i faced long back but i remember in Visual Studio when i was running report i used with “~” but when i deployed to production IIS reports was not working. After removing the “~” reports was working on production IIS also.

  28. Alejandro Gallo says:

    You are the BEST!!!!!
    You save our life! Thanks!

  29. Thanh Vu says:

    Thanks a lot. It works great.

  30. faisal says:

    Good job man.. it’s working. I am working on this one since 3 days

  31. Vicky says:

    Thanks a lot. You are Great…

  32. Mohamed Ibrahim says:

    I have installed VS 2017 Community Edition and CRforVS SP21 both 32 bit and 64 Bit on Windows 10 Platform. I could not find crystal reports files in the VS2017 IDE,
    Where is the Issue, How to get crystal reports files gets display in VS 2017 IDE

  33. praveen says:

    dear sir ,
    plz help me ,
    in my website application crystal report run in my laptop
    but in online is not working …..plz help the website is error is ”
    500 – Internal server error.
    There is a problem with the resource you are looking for, and it cannot be displayed.”

    plz help me – the website address is macccs.in

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.