伙计们,
我有一个简单的测试应用程序,我在其中从 Web 服务返回一个不带参数的字符串。
这在我的开发环境下运行良好(Windows 7 64 位上的 VS 2010 SP1Rel)。
当我部署到本地 IIS7 时,Web 服务的代理代码不会加载(在 IIS 日志中是 500 错误)。
当我请求有问题的 url (http://localhost/Tests/WebServiceTests/TestWebServiceProxy/wsTestService.asmx/jsdebug) 时,我得到
System.InvalidOperationException: jsdebug Web Service method name is not valid.
at System.Web.Services.Protocols.HttpServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
有任何想法吗?
谢谢,
布雷特