1
“嗨 我打电话从JavaScript/jQuery的web服务如下:在mscorlib.dll中发生类型'System.UnauthorizedAccessException'的第一次机会异常?
function Test(userid) {
alert(userid);
$.ajax({
type: "POST",
url: "testWebService.asmx/GetData",
data: "{ userid:'" + userid + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
alert("1")
var dATAS = (typeof (response.d)) == 'string' ? eval('(' + response.d + ')') : response.d;
alert("2")
},
failure: function (msg) {
}
});
}
的用户ID得到警告,
web服务进行测试,它工作时,其他警报犯规表演。
输出显示了这个:
型“System.UnauthorizedAccessException的”的第一次机会异常出现在mscorlib.dll
我是怎么有错?
编辑:我复制的功能,解决方案中的另一个现有的web服务,它没有问题