2008-09-17 45 views
0

由於某些原因,當我嘗試向設置了ScriptService屬性的Ajax.net Web服務發出請求時,在我無法控制的協議類內發生異常。任何人見過這個?Ajax.Net擴展框架中的IndexOutOfRangeException

這裏是確切的味精: System.IndexOutOfRangeException:索引超出了數組的邊界。 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的請求,響應的HttpResponse) 在System.Web.Services.Protocols.ServerProtocolFactory.Create(類型類型,HttpContext的上下文中,請求的HttpRequest,HttpResponse對象響應,布爾& abortProcessing)

THX 崔佛

回答

2

在將參數讀入Web服務方法時,這通常是一個例外...您確定您傳遞的是數字/類型該方法所期望的參數?

+0

很好的回答!更多地解釋真正的問題而不是掩飾。 – 2015-05-29 03:40:42