This is a migrated thread and some comments may be shown as answers.

Server-side error showing up as JavaScript runtime error

1 Answer 10 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Gregory
Top achievements
Rank 1
Gregory asked on 17 Sep 2013, 02:52 PM
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.

-Gregory

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 20 Sep 2013, 10:48 AM
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:
http://www.telerik.com/help/aspnet-ajax/ajax-error-handling.html

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.

Regards,
Eyup
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.
Tags
Ajax
Asked by
Gregory
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or