首页 / 知识

关于Ajax.Net扩展框架中的c#:IndexOutOfRangeException

2023-04-16 18:53:00

关于Ajax.Net扩展框架中的c#:IndexOutOfRangeException

IndexOutOfRangeException in the Ajax.Net extensions framework

由于某种原因,当我尝试通过ScriptService属性集向Ajax.net Web服务发出请求时,协议类内部深处发生了一个我无法控制的异常。 有人看过吗?

这是确切的味精:
System.IndexOutOfRangeException:索引超出数组的范围。
在System.Web.Services.Protocols.HttpServerType..ctor(类型类型)
在System.Web.Services.Protocols.HttpServerProtocol.Initialize()
在System.Web.Services.Protocols.ServerProtocol.SetContext(类型类型,HttpContext ontext,HttpRequest请求,HttpResponse响应)
在System.Web.Services.Protocols.ServerProtocolFactory.Create中(类型类型,HttpContext上下文,HttpRequest请求,HttpResponse响应,布尔值和abortProcessing)

谢谢
特雷夫


将参数读取到Web服务方法中时通常是一个例外...您确定要传递该方法期望的参数数量/类型吗?


还要确保为asp.net ajax正确设置了web.config:

http://www.asp.net/AJAX/Documentation/Live/ConfiguringASPNETAJAX.aspx


框架扩展协议请求

最新内容

相关内容

猜你喜欢