Authentication failed during call webmethod from jquery.ajx with AspNet.FriendlyUrls and AspNet.Identity

依然范特西╮ 提交于 2019-11-27 15:30:36
Sam

In your App_Start folder, within your RouteConfig....

Comment out the following line or change its RedirectMode:

//settings.AutoRedirectMode = RedirectMode.Permanent;

It is not exactly the same use case, but worth mentioning if you are using a web service and had the "Authentication failed" message. Please check that your web service has the attribute "[System.Web.Script.Services.ScriptService]". This allows the web service to be called from script.

Example:

[System.Web.Script.Services.ScriptService]
public class WS_Default : System.Web.Services.WebService
{
    ...
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!