我在WS(asmx)中得到一个异常,它说:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Web.Services.Protocols.HttpServerType..ctor(Type type)
at System.Web.Services.Protocols.HttpServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
我正在从浏览器调用该方法,它是一个HelloWorld()
无法执行任何操作的Web方法
答案 0 :(得分:0)
我的网络服务代码中有些东西搞砸了。我删除了项目,重新创建它,一切正常。遗憾!