Hi I wrote the following webservice [WebMethod] public void test() { return ; } I added this in the web.config file: <webServices> <protocols> <add name="HttpPost"/> <add name="HttpGet"/> </protocols> </webServices> but when I try to consume the service via httpGet I get this error: 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.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
Hi, You are probably calling the web service using Query String with passing some parameters (hidden fields). If so the web service is not being able to parse the provided parameters and shows the error. You need to check for the proper parameters that the web service is expecting "Dan" wrote: > Hi I wrote the following webservice > > [WebMethod] > public void test() > { > return ; > } > > I added this in the web.config file: > <webServices> > <protocols> > <add name="HttpPost"/> > <add name="HttpGet"/> > </protocols> > </webServices> > > but when I try to consume the service via httpGet I get this error: > > 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.ServerProtocolFactory.Create(Type type, > HttpContext context, HttpRequest request, HttpResponse response, Boolean& > abortProcessing) > >