请求wsTestService.asmx/jsdebug在服务器上返回500错误,在开发中很好

bni*_*and 7 asp.net iis-7 web-services javascript-debugger

伙计们,

我有一个简单的测试应用程序,我从一个没有参数的Web服务返回一个字符串.

这在我的开发环境(Windows 7 64位上的VS 2010 SP1Rel)下工作正常.

当我部署到本地IIS7时,Web服务的代理代码无法加载(在IIS日志中,它是500错误).

当我请求违规网址(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)
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

谢谢,

布雷特

bni*_*and 15

好的,

我找到了答案.不知怎的,我只在IIS7中部分安装了asp.net 4.0.我重申

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

现在一切都很好!