gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 10:11:52 24 4
gpt4 key购买 nike

各位,

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

有任何想法吗?

谢谢,

布雷特

最佳答案

好的,

我找到了答案。不知何故,我在 IIS7 中只安装了部分 asp.net 4.0。我重新跑
C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis -i
现在一切都很好!

关于asp.net - 请求 wsTestService.asmx/jsdebug 在服务器上返回 500 错误,在开发中很好,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5382239/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com