.net Hello World webmethod中的异常
我在WS(asmx)中遇到一个异常,它说:.net Hello World webmethod中的异常,.net,web-services,.net,Web Services,我在WS(asmx)中遇到一个异常,它说: 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
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方法,它什么都不做我的web服务代码中确实有一些东西出错了。我删除了这个项目,重新创建了它,一切正常。对不起 即使webmethod没有做任何事情,我也会包括定义,以及关于如何调用它的更多细节?