2009-11-18 64 views
0

我得到了一個WS(ASMX)一個異常,說:例外在一個Hello World WEBMETHOD

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

即使webmethod沒有做任何事情,我會包含定義以及更多關於如何調用它的細節。 – 2009-11-18 19:09:34

+1

你能發佈你的源代碼嗎? – 2009-11-18 19:09:58

回答

0

東西真的搞砸了我的網絡服務代碼。我刪除了該項目,重新創建它,一切正常。抱歉!