ASP.NET Calling WebMethod with jQuery AJAX “401 (Unauthorized)”
ASP.NET Calling WebMethod with jQuery AJAX "401 (Unauthorized)" Inside ~/App_Start/RouteConfig.cs change: settings.AutoRedirectMode = RedirectMode.Permanent; To: settings.AutoRedirectMode = RedirectMode.Off; Fonte: https://stackoverflow.com/questions/23033614/asp-net-calling-webmethod-with-jquery-ajax-401-unauthorized