'type' is null or not an object in /Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=

7 posts, 0 answers
  1. Yuvaraja
    Yuvaraja avatar
    2 posts
    Member since:
    Aug 2012

    Posted 13 Aug 2012 Link to this post

    Hello,

    We are getting an intermitent java script error in our SharePoint custom ASP.NET page. (FYI, the telerik controls are showed into page via web parts which intern calls .NET user control)

    Java script error details:

    Message: 'type' is null or not an object
    Line: 6
    Char: 33796
    Code: 0
    URI: http://mycompany.com/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ad0c4ca6e-6b5d-49b6-922d-5244924fb100%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2012.1.411.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a4cad056e-160b-4b85-8751-cc8693e9bcd0%3a16e4e7cd%3aed16cbdc%3a86526ba7%3af7645509%3a2003d0b8%3a24ee1bba%3ae330518b%3a1e771326%3ac8618e41%3af46195d3%3aaa288e2d

    We make use of lastest Telerik.Web.UI and Telerik.Web.UI.Skins dlls version 2012.1.411.35.

    Below are the list of web.config changes made for Telerik usage,
    1) SafeControl
     
    <SafeControl Assembly="Telerik.Web.UI, Version=2012.1.411.35, 
    Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" 
    TypeName="*" Safe="True" SafeAgainstScript="False" />

    2) Page tag prefix
    <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI, 
    Version=2012.1.411.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4
    />

    3) web.server handlers
    <add name="Telerik.Web.UI.WebResource" path="Telerik.Web.UI.WebResource.axd" 
    verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, 
    Version=2012.1.411.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4
    />

    The page works fine most of the time; but at times it throws above specified java script error and dont work anymore until another page refresh.

    I couldn't even debug this error as this is very unstable error.  
    May I know what may be the issue?

    Your reply is much appreciated.

    Thanks,
    ~Yuva
  2. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 14 Aug 2012 Link to this post

    Hi,

    Could you please be more specific about the scenario that you implement on your page?
    Can you paste here some simplified markup to illustrate it?

    Regards,
    Kalina
    the Telerik team
    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 their blog feed now.

  3. Yuvaraja
    Yuvaraja avatar
    2 posts
    Member since:
    Aug 2012

    Posted 14 Aug 2012 Link to this post

    Hello there,

    Here are some more information related to the error: 'type' is null or not an object.

    Message: 'type' is null or not an object
    Line: 6
    Char: 33796
    Code: 0
    URI:
    http://myserver:4321/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ad0c4ca6e-6b5d-49b6-922d-5244924fb100%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2012.1.411.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a4cad056e-160b-4b85-8751-cc8693e9bcd0%3a16e4e7cd%3aed16cbdc%3a874f8ea2%3af7645509%3a24ee1bba%3a19620875%3af46195d3%3a490a9d4e%3abd8f85e4%3a86526ba7%3ae330518b%3a1e771326%3a8e6f0d33%3a6a6d718d%3ab7778d6c%3a7c926187%3a8674cba1%3ac08e9f8a%3aa51ee93e%3a59462f1%3a2003d0b8%3aaa288e2d%3a58366029%3ac8618e41%3ae4f8f289

    The error occurs at line 6 of column 33796; which is exactly below location of Telerik.Web.UI.WebResource.axd.

    Sys.UI.DomEvent=function(e){var a=e,b=this.type=a.type.toLowerCase();...

    Apart from this, I do get "Permissions denied" error. Please see the detail below.

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.30729; InfoPath.1; MS-RTC LM 8)
    Timestamp: Wed, 15 Aug 2012 03:34:43 UTC

    Message: Permission denied
    Line: 6
    Char: 50940
    Code: 0
    URI:
    http://myserver:4321/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3ad0c4ca6e-6b5d-49b6-922d-5244924fb100%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2012.1.411.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a4cad056e-160b-4b85-8751-cc8693e9bcd0%3a16e4e7cd%3aed16cbdc%3a874f8ea2%3af7645509%3a24ee1bba%3a19620875%3af46195d3%3a490a9d4e%3abd8f85e4%3a86526ba7%3ae330518b%3a1e771326%3a8e6f0d33%3a6a6d718d%3ab7778d6c%3a7c926187%3a8674cba1%3ac08e9f8a%3aa51ee93e%3a59462f1%3a2003d0b8%3aaa288e2d%3a58366029%3ac8618e41%3ae4f8f289

    The error occurs at line 6 of column 50940; which is exactly below location of Telerik.Web.UI.WebResource.axd.

    get_stateString:function(){var a=window.location.hash;if(this._isSafari2())..

    As I said the error is very intermittent, so I'm uable to state you the sequice it produces this error.

    My page uses below RAD controls in it.

    • RADScruoptManager
    • RADAJAXManager
    • RADFormDecorator
    • RADAJAXLoadingPanel
    • RADScriptBlock
    • RADWindowManager
    • RADGrid
    • RADMenu

    The server configuration is Windows 2008, IIS 7, ASP.NET 3.5, AJAX Extensions 3.5 and Telirik 2012 (latest version).

    Apart from this we do make use of JQuery on the page.

    Please let us know if you need any more details.

    Thanks,
    ~Yuva

  4. Kalina
    Admin
    Kalina avatar
    918 posts

    Posted 16 Aug 2012 Link to this post

    Hi Yuvaraja,

    Thank you for the additional details provided.

    However I am afraid that I still do not fully understand your scenario.
    As far as I can see - you update some controls via RadAjaxManager.
    In this case you have to check whether your SharePoint machine has been updated to the Microsoft cumulative update from October 2011.
    There was an issue with loading scripts via Ajax in SharePoint that that Microsoft fixed and provided with this update (and the subsequent cumulative updates). So please apply this or subsequent cumulative update.

    Regarding the permissions issue - please add the Telerik.Web.Resource handler registration and add authorization - as this has been described here.


    Regards,
    Kalina
    the Telerik team
    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 their blog feed now.
  5. SK
    SK avatar
    14 posts
    Member since:
    Mar 2009

    Posted 04 Dec 2012 Link to this post

    I am getting the same error:

    This in in IE 8.0 on a fresh machine 2008-R2 x64. The following error is occuring: Then none of the buttons work on this page...

    ================
    Message: 'type' is null or not an object (** This has happened at least 20 times)
    Line: 6
    Char: 55898
    Code: 0
    URI: http://win-ucql59urnir/mysite/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a8f393b2b-3315-402f-b504-cd6d2db001f6%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2012.3.1016.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3aeedc0a8d-48b8-46b8-a699-de66b4bdef1e%3a16e4e7cd%3af7645509%3a24ee1bba%3a7165f74


    Message: 'window.Telerik.Web.UI.RadToolTip' is null or not an object
    Line: 254
    Char: 25
    Code: 0
    URI: http://win-ucql59urnir/mysite/Configuration/NewInstallation.aspx


    Message: 'type' is null or not an object
    Line: 6
    Char: 55898
    Code: 0
    URI: http://win-ucql59urnir/mysite/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a8f393b2b-3315-402f-b504-
    cd6d2db001f6%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2012.3.1016.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-


    US%3aeedc0a8d-48b8-46b8-a699-de66b4bdef1e%3a16e4e7cd%3af7645509%3a24ee1bba%3a7165f74

    ========================================================
  6. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 05 Dec 2012 Link to this post

    Hello,

    I have just answered your support ticket on the same matter and I am pasting the troubleshooting steps I have suggested in this thread as well, in case somebody else stumbles on a similar issue:





    This is a strange error and I have not seen it before. Can you confirm that there isn't code that is using the RadControls too early in the page lifecycle (i.e. before the Sys.Application.Load event)? This is easiest tested by disabling your custom scripts and if the issue is gone you can start re-adding them piece by piece to find the offending one. You can also examine the stack trace of the error to see where it originates from (i.e. where is the call that causes the issue).

    It is possible that some of the scripts the controls need to operate properly are not loaded, so I can suggest you take a look at the following articles and see if the suggestions there help:
    http://www.telerik.com/help/aspnet-ajax/introduction-web-resources-troubleshooting.html
    http://www.telerik.com/help/aspnet-ajax/introduction-troubleshooting.html

    You can also try the script CDN we offer: http://www.telerik.com/help/aspnet-ajax/scriptmanager-cdn-support.html so that the scripts are not loaded from your own server, in case the problem stems from the webresource requests.

    I can also suggest the approach from this blog post so that you can get the resource that is causing the problem: http://blogs.telerik.com/blogs/07-03-27/debugging-asp-net-2-0-web-resources-decrypting-the-url-and-getting-the-resource-name.aspx.

    If you are using RadScriptManager you can also try disabling the script combining by setting the EnableScriptCombine property to false.



    All the best,
    Marin Bratanov
    the Telerik team
    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 their blog feed now.
  7. Felipe
    Felipe avatar
    3 posts
    Member since:
    Aug 2010

    Posted 25 Dec 2012 Link to this post

    I am having the exact same problem. If anyone knows the solution to this problem it will be really helpful for me as well.
Back to Top