views:

116

answers:

1

I get an exception in a WS (asmx) which says:

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)

I am invoking the method from the browser and it's a HelloWorld() web method that does not do anything

A: 

Something was really messed up in my web service code. I deleted the project, recreated it, everything works fine. Sorry!