Wednesday, February 22, 2012

The Safari’s and Chrome’s problems with Report Viewer 2010 + UpdatePanel + SharePoint 2010 or Uncaught Sys.ScriptLoadFailedException: Sys.ScriptLoadFailedException: The script '.....' could not be loaded. Uncaught TypeError: Cannot read property '_notified' of null.

Initial data
We have one WebPart for the  SharePoint 2010. In this WebPart we have one UpdatePanel. In this UpdatePanel  -  Microsoft Report Viewer 2010 is placed.

Situation
MS Report Viewer  works correct in the IE9.0 and in the Firefox. Report’s data being displayed correctly… But in the Chrome and in the Safari we have nothing.  Well, we see NOT active Report Viewer, without any content.  But if we remove UpadtePanel – all works  good in all browsers. I was trying to reproduce this issue by base website created in the VS2010 (UpdatePanel + Report Viewer) – and again all was good. There was not any problems.  But in the SharePoint2010 – no data in the ReportViewer.

Investigation
By the Chrome Dev Tool (F12) I found that the page had two JavaScript’s errors :
  1. Uncaught Sys.ScriptLoadFailedException: Sys.ScriptLoadFailedException: The script '....' could not be loaded. 
  2. Uncaught TypeError: Cannot read property '_notified' of null
And it was in the MicrosoftAjaxWebForms.js...

Solution
After internet’s revision I found that the same errors often occur in these browsers ( Safary and Chrome) if you use UpdatePanel/AjaxToolkit – all that uses  ScriptManager. MicrosoftAjax in one word… it looks like the problem is in the following - MicrosoftAjaxWebForms.js don't define WebKit browsers correctly
If you add following code on the page - all works correctly :

Sys.Browser.WebKit = {};
if (navigator.userAgent.indexOf('WebKit/') > -1) {
    Sys.Browser.agent = Sys.Browser.WebKit;
    Sys.Browser.version = parseFloat(navigator.userAgent.match(/WebKit\/(\d+(\.\d+)?)/)[1]);
    Sys.Browser.name = 'WebKit';
}

It looks like that correct JavaScript is present for these browsers, but definer is not present.  In any case these rows were solving my problems. But one question still present - why it was in the SharePoint2010 and was not present in the simple website created by VS2010… only one suggestion - different versions of the scripts for these products.

Hope it will help you.

24 comments:

  1. WHen I add that code to my website I get a "Sys not found" error. =/

    ReplyDelete
  2. Replies
    1. On my side, the problem occurred in a simple web site using VS2010 with .net4 (Just to report)

      Delete
  3. Planet Win 365 Casino Review 2021 ᐈ Up to 200,000 IN Welcome
    Planet Win 365 is a new online カジノ シークレット casino powered planet win 365 by Bet365 software. It 188bet offers a wide variety of games including slots, roulette, blackjack,

    ReplyDelete
  4. I went over this internet site and I think you have a lot of great info , saved to favorites.

    스포츠토토승부식

    ReplyDelete
  5. Casino Finder (Google Play) Reviews & Demos - Go
    Check Casino Finder (Google Play). air jordan 18 retro yellow suede from my site A where can you buy air jordan 18 retro \'toro\' men\'s sneakers look at some of the best gambling sites in 토토 벌금 넷마블 the bet365 우회 주소 world. They 먹튀검증 업체 샤오미 offer a full game library,

    ReplyDelete
  6. Amazing! Its really amazing article, I have got much clear idea regarding
    from this post. 토토

    ReplyDelete
  7. I really appreciate the kind of topics you post here. Thanks for sharing us a piece of great information that is actually helpful. Good day! 릴게임

    ReplyDelete
  8. Very interesting information!Perfect just what I was looking for! 토토사이트

    ReplyDelete
  9. I get pleasure from, cause I found just what I used to be having a look for. You’ve ended my four day long hunt! God Bless you man. Have a nice day. 경마

    ReplyDelete
  10. Nice informative post. Thanks for sharing this post. Keep sharing more blogs. DUI Lawyer Suffolk VA

    ReplyDelete
  11. Thank you for sharing this useful article. I really like the way you write.
    Divorce Lawyers Fredericksburg VA

    ReplyDelete
  12. This comment has been removed by the author.

    ReplyDelete
  13. Data annotation services are truly an indispensable solution for data-heavy industries such as retail, gaming, healthcare, and manufacturing. And if you need these services or you need to structure them, I recommend that you contact the pros at the following link https://www.computervisionannotation.com/ and sign up for a consultation to find the best solution for you.

    ReplyDelete
  14. Thanks for sharing such a nice piece of information with us. This is very knowledgeable for me. If you are searching for topics on biology paper assignments then visit: Biology Paper Topics Assignment Help

    ReplyDelete
  15. This is really interesting, your post was so nice and very informative post thanks for sharing this post. If you are looking for the best Facebook page creation service then visit: Franchise SEO

    ReplyDelete
  16. I read this post, This is really interesting, You’re a very skilled blogger. Thanks for sharing your thoughts. If you are finding jobs in Ruby On Rails Software Development as a freelancer then visit: Find Ruby On Rails Software Development Jobs Freelancer

    ReplyDelete
  17. I'm happy to see some great articles on your site This is a great article. I love it. Many thanks for sharing it. If you are looking for Bow and arrow set toys for your kids then visit: Bow and arrow set toys

    ReplyDelete
  18. Mechanical counseling is fundamental. At the point when there is an expectation to participate in a genuinely new thing, there should be someone who will direct you through the cycle. This is an overall truth and is likewise applied to ERP reception for business. ERP programming is accepted to work well for gigantic companies, yet little and consistently developing organizations have likewise encountered the advantages of the framework. Various organizations' sizes can profit from the execution of ERP frameworks, and their requirements in tech approaches will be different too. The counseling master will frame the ERP execution plan for the unconventional business vector of the organization and assist the business people with saving money on ERP execution costs>> erp implementation companies

    ReplyDelete
  19. Unlock the potential of your business with our top-notch custom software development company. We specialize in crafting tailor-made software solutions that streamline your processes, enhance efficiency, and drive growth. Our expert team ensures the delivery of scalable, secure, and high-performance software applications that align perfectly with your specific business needs.

    ReplyDelete
  20. Claws Custom Boxes has a team of experts offering the best services to brands in form of exceptional, durable, and eco-friendly Cereal Boxes.

    ReplyDelete
  21. It seems like you're experiencing issues with Safari and Chrome related to report reviews. To provide more specific assistance, I'll need more information about the problems you're encountering. However, here are some common issues users may face with these browsers: Abogado DUI Fredericksburg

    ReplyDelete
  22. Safari and Chrome may encounter issues with Report Viewer 2010, UpdatePanel, and SharePoint 2010, resulting in Uncaught errors. Debugging and troubleshooting are essential, considering browser compatibility, JavaScript conflicts, and SharePoint integration. Collaborating with developer communities and exploring updated solutions can help resolve these technical challenges effectively. virginia reckless driving ticket

    ReplyDelete