请求wsTestService.asmx / jsdebug在服务器上返回500错误,在开发中很好 [英] Request for wsTestService.asmx/jsdebug returns 500 error on server, fine in development

查看:365
本文介绍了请求wsTestService.asmx / jsdebug在服务器上返回500错误,在开发中很好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Folks,

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

I have a simple test application in which I return a string from a web service without arguments.

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

This works fine under my development environment (VS 2010 SP1Rel on Windows 7 64 bit).

当我向本地IIS7部署Web代理代码时服务未加载(在IIS日志中它是500错误)。

When I deploy to the local IIS7 the proxy code for the web service does not load (in IIS logs it is a 500 error).

当我请求违规网址时(http://localhost/Tests/WebServiceTests/TestWebServiceProxy/wsTestService.asmx/jsdebug),我得到了

When I request the offending url (http://localhost/Tests/WebServiceTests/TestWebServiceProxy/wsTestService.asmx/jsdebug), I get

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)

任何想法?

谢谢,

Brett

推荐答案

好的,

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

I found the answer. Somehow I only had a partial install of asp.net 4.0 in IIS7. I reran

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

现在一切顺利!

这篇关于请求wsTestService.asmx / jsdebug在服务器上返回500错误,在开发中很好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆