Server-side error showing up as JavaScript runtime error

2 posts, 0 answers
  1. Gregory
    Gregory avatar
    5 posts
    Member since:
    Jan 2011

    Posted 17 Sep 2013 Link to this post

    Hello, I have a Master page with a RadAjaxManager on it. I am using version 2012.3.1205.40 (with .NET framework 4.0).

    When I have a server-side error that would, normally, cause Visual Studio 2012 to pause debugging & highlight the offending line, instead it shows up as a JavaScript runtime error. Could you please tell me how to disable this. Thank you.

    Screenshot attached.

  2. Eyup
    Eyup avatar
    4081 posts

    Posted 20 Sep 2013 Link to this post

    Hi Gregory,

    Please note that this is a general MS AJAX behavior, not Telerik specific. You can refer to this article for handling the server errors from AJAX requests:

    Here is a basic sample, where you can debug your project using the following event:
    Copy Code
    Copy Code
    protected void RadScriptManager1_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
        Type errorType = e.Exception.GetType();
        string errorReason = e.Exception.Message;

    Hope this helps.

    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.
Back to Top