7

伙计们,

我有一个简单的测试应用程序,我在其中从 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)

有任何想法吗?

谢谢,

布雷特

4

1 回答 1

15

好的,

我找到了答案。不知何故,我只在 IIS7 中安装了部分 asp.net 4.0。我重播了

C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis -i

现在一切都很好!

于 2011-03-22T01:57:50.960 回答