Hello World webmethod中的例外情况

时间:2009-11-18 18:59:36

标签: .net web-services

我在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方法

1 个答案:

答案 0 :(得分:0)

我的网络服务代码中有些东西搞砸了。我删除了项目,重新创建它,一切正常。遗憾!