0

For some reason when I attempt to make a request to an Ajax.net web service with the ScriptService attribute set, an exception occurs deep inside the protocol class which I have no control over. Anyone seen this before?

Here is the exact msg: 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 ontext, HttpRequest request, HttpResponse response) at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)

thx Trev

2 Answers 2

3

This is usually an exception while reading parameters into the web service method...are you sure you're passing the number/type of parameters the method is expecting?

Sign up to request clarification or add additional context in comments.

1 Comment

Good Answer! More towards explaining real issue than cover-ups.
0

Also make sure your web.config is setup properly for asp.net ajax:

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.