由于某些原因,当我试图向设置了ScriptService属性的Ajax.net web服务发出请求时,在我无法控制的协议类内部发生了异常。有人见过这个吗?
下面是确切的msg: System.IndexOutOfRangeException: Index超出了数组的界限。在System.Web.Services.Protocols.HttpServerType..ctor(Type类型)在System.Web.Services.Protocols.HttpServerProtocol.Initialize()在System.Web.Services.Protocols.ServerProtocol.SetContext(Type类型,HttpContext ontext,HttpRequest请求,HttpResponse响应)在System.Web.Services.Protocols.ServerProtocolFactory.Create(Type类型,HttpContext上下文,HttpRequest请求,HttpResponse响应,布尔值& abortProcessing)
thx Trev
发布于 2008-09-17 19:39:04
还要确保为asp.net ajax正确设置了web.config:
http://www.asp.net/AJAX/Documentation/Live/ConfiguringASPNETAJAX.aspx
发布于 2008-09-17 19:32:56
在将参数读入web服务method...are时,这通常是一个异常。您确定传递的是该方法所需的参数数量/类型吗?
https://stackoverflow.com/questions/86549
复制相似问题