0
Posted on 1:16 AM by Softminer and filed under , ,

Sometime in ajax controller u wanna return back error message and Onfailure will be called only if status code is 500 and usually this error is handled by IIS, to skip this error do following:

Server.ClearError();
Response.StatusCode = 500;
Response.TrySkipIisCustomErrors = true;


+