|
编译后发布到本机IIS中跨域调用webservice可以正常访问。
发布到服务器后,在登录页面跨域调用webservice报如下错误:
{"Message":"An attempt was made to call the method \u0027CUser\u0027 using a GET request, which is not allowed.","StackTrace":" at System.Web.Script.Services.RestHandler.GetRawParams(WebServiceMethodData methodData, HttpContext context)\r\n at System.Web.Script.Services.RestHandler.ExecuteWebServiceCall(HttpContext context, WebServiceMethodData methodData)","ExceptionType":"System.InvalidOperationException"} |
|