Unhandled exception Telerik.Web.UI.WebResource.axd

17 posts, 1 answers
  1. Olga
    Olga avatar
    9 posts
    Member since:
    Nov 2013

    Posted 10 Jan 2014 Link to this post

    Good time of day.
    I'm facing a problem with asp.net and Telerik. I'm new to asp.net,  I was developing a project on my Windows 7 machine and everything was working fine, at list I wasn't getting any errors, and project behavior was as designed. However, after upgrading to Windows 8.1 Pro, and running a project on the same version of VS (VS 2013 Express), I got this error when I just run Web App:

    Unhandled exception at line 6, column 74203 in http://localhost:50894/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ContentPlaceHolder1_script_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:d618f02c-bda7-40f1-bb64-308e08f719c3:ea597d4b:b25378d2;Telerik.Web.UI,+Version=2012.3.1308.40,+Culture=neutral,+PublicKeyToken=121fae78165ba3d4:en-US:0c62baaa-fecc-4eb5-91ff-e3de59bf8f40:e330518b:16e4e7cd:f7645509:24ee1bba:2003d0b8:1e771326:c8618e41:7165f74:78b9daca:58366029:8674cba1:7c926187:b7778d6c:c08e9f8a:f46195d3:aa288e2d:e4f8f289:a51ee93e:59462f1:874f8ea2:19620875:490a9d4e:bd8f85e4:ed16cbdc

    0x800a138f - JavaScript runtime error: Unable to set property 'control' of undefined or null reference

    This project works absolutely fine on my old machine (I tried to swap old HDD with Windows 7), but on two Windows 8.1 Pro machines running with the same error. 
    In Chrome browser, it doesn't shows this error, but if open developer tools, I can see that Javascript error: Unable to set property 'control' of undefined or null reference, is there. And in Internet Explorer in throws the exception as above. It seems like there could versions compatibility issues, but not really sure, as I have small experience working with ASP.
     Any help is appreciated. I was going to migrate to Windows 8.1, and really don't want to swap Hard Drives when I need to work on this project.
    Thank you
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 14 Jan 2014 Link to this post

    Hi Olga,

    What is the browser where you get this error? It is quite a strange one and it should not occur on a properly working page.

    What I see is that you are using a rather old version of the controls (2012.3.1308) that does not support new browsers like IE11. Thus, I would advise upgrading to the latest (Q2 2013 SP1 at present) and checking if the issue persists. If so, look for JavaScript errors prior to the one from our controls. It is likely that .NET4 does not properly recognize IE11 which is likely to break the page. Details on that are available in this blog post. If this still does not resolve the problem I advise that you open a ticket and send us a page we can run and inspect the problem, so we can actually debug it.


    Regards,
    Marin Bratanov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Olga
    Olga avatar
    9 posts
    Member since:
    Nov 2013

    Posted 16 Jan 2014 Link to this post

    Hello Marin,

    Thank you for your reply. However I couldn't get it to work. I've tried the emulation mode in the IE11, but it throws the same exception. And as you described such issues in suggested blog, main problem with my application is broken layout. I'm usually working in the Chrome, and it's not throwing the exception in the application itself, however in browser's console I can see the javascript error, and the layout of the page is also broken, the same way as in the IE11. I've also tried to change the target framework to 4.5, which didn't help as well. I have all latest updates installed on my machine, so it shouldn't be the case, unless there is some kind of update actually cause this. 
    The upgrade to newer version of controls may help, but there is no possibility for that at this moment.

    There is any other solution available which I can try?

    Regards,
    Olga
  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 20 Jan 2014 Link to this post

    Hello Olga,

    I am afraid IE11 and the new versions of Chrome brought a great deal of changes (including breaking ones) and our controls need to be updated in order to support them. When Q3 2012 (that you are using) came out these browsers were not created yet, so we could not have tested and prepared for them.

    You can try adding an x-ua compatible meta tag to put IE11 in IE9 or IE10 mode, but I cannot guarantee this will work. As for Chrome - I am not aware of a way to revert it to an older version, and even if that is achievable on your own machine you cannot for the end users to do this.

    Thus, I strongly advise upgrading your RadControls version to the latest (Q3 2012 SP1 with SP2 just around the corner).
    If that is not possible you can try removing pieces of the page until you can pinpoint the problematic content/control/logic and try to workaround it for IE11. If you can send us a sample that shows such a trimmed down version perhaps we could help, but I cannot guarantee this.


    Regards,
    Marin Bratanov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  6. Olga
    Olga avatar
    9 posts
    Member since:
    Nov 2013

    Posted 25 Jan 2014 in reply to Marin Bratanov Link to this post

    Marin,
    Thank you for support. I've tried older versions of Chrome and IE on my computer, but I'm facing same problems. Could it be problems with dotNet and asp for windows 8.1? As far as I understand it has to be different platforms.
    Here is the example of the result I'm getting with Chrome Browser on Windows 8.1 compared to the correct result from Windows 7 PC.
    The thing is, actually the layout on Windows 7 with IE11 and latest Chrome (32.x) absolutely correct. But on Windows 8.1 on the same IE11 and even older Chrome (31.x) I'm getting broken layout. So it seems like, browsers are not the issue, as far as I can notice.
    Any help is appreciated, maybe somebody else has same issues.

    Best regards,
    Olga
  7. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 27 Jan 2014 Link to this post

    Hello Olga,

    I am not aware of reasons for such behavior and what I can advise at this point is the following:
    - repair the .NET 4.5 installation
    - reinstall the browsers
    - examine the page for JavaScript errors and broken requests. It is possible that a MIME resource mapping from IIS8 is duplicated in the web.config of the site and causes issues with serving all static content like script files and images.
    - try using our CDN:
      = http://www.telerik.com/help/aspnet-ajax/scriptmanager-cdn-support.html
      = http://www.telerik.com/help/aspnet-ajax/stylesheetmanager-cdn-support.html


    Regards,
    Marin Bratanov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
  8. Answer
    Olga
    Olga avatar
    9 posts
    Member since:
    Nov 2013

    Posted 01 Mar 2014 in reply to Marin Bratanov Link to this post

    Hello Marin,

    I finally found the solution to this problem. First of all the issue I had was that table view inside RadControls weren't rendered correctly, so instead of table attributes I had bunch of random <div>'s when I inspected with developer tools in chrome. So I was looking the solution in the internet, I found some people experienced similar issues. Apparently problem was related to Visual Studio for Web, and on the only PC where this project worked fine I had 2012 version, and on the others - 2013 version, where I had broken layout. The way to fix that problem was to add 

    <add key="vs:EnableBrowserLink" value="false" />
    inside appSettings section.

    The problem is the new feature called Browser Link in VS2013.

    But your dedication to this problem is appreciate.
    Regards,
    Olga

  9. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 05 Mar 2014 Link to this post

    Hello Olga,

    It is good to hear that you have managed to resolve the issue.
    Indeed, there is a VS bug where webresource requests are blank when browser link is enabled, so the workaround you have found is the valid option.

    I have taken the liberty of marking your post as the thread answer and making the important bits bold, so that anyone else with a similar problem will find the information easier.


    Regards,
    Marin Bratanov
    Telerik

    DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

  10. Satbir
    Satbir avatar
    4 posts
    Member since:
    Apr 2014

    Posted 14 Jun 2014 in reply to Olga Link to this post

    Thanks a ton Olga,

    I was facing the same issue and was googling from last 3-4 days, but didn't find solution.
    Today luckily i came across this post and the solution given by you solved my problem too.

    Marin, you are right this is something that is related to VS, as my same solution was working fine with VS 2012 but not in VS 2013 and even VS 2013 Update 2 didn't fixed this.

    Regards
    Satbir



  11. Troy
    Troy avatar
    2 posts
    Member since:
    Sep 2006

    Posted 30 Mar Link to this post

    This is still relevant. I just moved the last of my projects from VS 2010 to VS 2015 (I skipped the other versions, as I couldn't stand them!) and this particular project started throwing this error. I added the "...EnableBrowserLInk..." line and the issue is gone.

    It may also be relevant to note, though, that the feature of being able to open multiple browsers at once with all of its intended functionality might not work as expected. I'm just guessing, though, as it isn't a feature I've really needed to this point, so I haven't tried it to find out. :)

  12. louiebeck
    louiebeck avatar
    2 posts
    Member since:
    Feb 2016

    Posted 08 Apr in reply to Olga Link to this post

    Could you disable the script combining  of the RadScriptManager and provide a live URL to your application so we could inspect the problem locally? In case the site contains private information, please open a support ticket and provide an URL there.
  13. Nwaf
    Nwaf avatar
    1 posts
    Member since:
    Jan 2012

    Posted 18 May Link to this post

    <add key="vs:EnableBrowserLink" value="false" />
    inside appSettings section.
    The problem is the new feature called Browser Link in VS2013.

    thank you Olga, this is work with me :)

  14. Yenza
    Yenza avatar
    10 posts
    Member since:
    Mar 2015

    Posted 02 Sep Link to this post

    Still a problem!! Using Telerik 2016 and VS2015.

    Get the following crash:
    Unhandled exception at line 8203, column 1 in http://localhost:50856/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;AjaxControlToolkit,+Version=4.1.60919.0,+Culture=neutral,+PublicKeyToken=28f01b0e84b6d53e:en:ee051b62-9cd6-49a5-87bb-93c07bc43d63:ea597d4b:b25378d2;Telerik.Web.UI:en:4b258e7c-7002-4d3e-9fa4-709d417eed98:16e4e7cd:f7645509:22a6274a:24ee1bba:c128760b:19620875:4877f69a:874f8ea2:f46195d3:92fe8ea0:fa31b949:490a9d4e:2003d0b8:88144a7a:1e771326:e524c98b:e330518b:c8618e41:e4f8f289:1a73651d:333f8d94:6a6d718d:a7e79140:9151b61d:6b3f73b3:cda80b3:8e6f0d33:1f3a7489:4cd1fec6:77613e24:f0c58c30:9b7cc2d2:8d1fecce:ec7335e:c442ac3f:d944e0f6:69667591:6b6b9ee5:595e7652

    0x800a138f - JavaScript runtime error: Unable to get property 'style' of undefined or null reference

     

    which is the following, i == null:

    var i=g.get(0).parentNode;
    i.style.zoom="normal";

     

    PS: tried the solution mentioned above (enablebrowserlink) but did not solve this problem.


  15. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 02 Sep Link to this post

    Hello,

    This sounds like an error related to the functionality of the controls rather than the requests being broken by the VS features.

    This line of code is related to treeview animations and the "i" variable from the minified scripts is the parent node of the current node.

    With this in mind, I advise the following:

    1. try removing animations

      <telerik:RadTreeView CollapseAnimation-Type="None" ExpandAnimation-Type="None"></telerik:RadTreeView>
    2. ensure there are nodes in the tree before calling api methods related to expand/collapse
    3. see if this happens only in IE running in Compatibility mode (if so, make sure the browser is running in standards/edge mode)
    4. if nothing yields a resolution, isolate the issue in a small runnable example and send it to us so we can investigate it

     


    Regards,

    Marin Bratanov
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  16. Yenza
    Yenza avatar
    10 posts
    Member since:
    Mar 2015

    Posted 05 Sep Link to this post

    1. Removing them solved it but I want animations.

    2. I checked our code and fiddled around a bit. Ended up changing one line which solved my problem:
    FROM:

    var refreshNode = function (node) {
            node.collapse();
            node.get_treeView().trackChanges();
            node.get_nodes().clear();
            node.set_expandMode(Telerik.Web.UI.TreeNodeExpandMode.WebService);
            node.get_treeView().commitChanges();
            node.expand();
        }

    TO:

    var refreshNode = function (node) {
            node.get_nodes().clear();
            node.collapse();
            node.get_treeView().trackChanges();
            node.set_expandMode(Telerik.Web.UI.TreeNodeExpandMode.WebService);
            node.get_treeView().commitChanges();
            node.expand();
        }

  17. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 07 Sep Link to this post

    Hi,

    I advise opening a support ticket and sending us a simple repro so we can review the case and advise accordingly.

    Regards,

    Marin Bratanov
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  18. Madhu
    Madhu avatar
    1 posts
    Member since:
    Nov 2012

    Posted 02 Nov in reply to Olga Link to this post

    Hi Olga,

    You saved my time.. that resolved my script issues.. 

     

    Thank You,

    Madhu

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017