Request for wsTestService.asmx/jsdebug returns 500 error on server, fine in development

亡梦爱人 提交于 2019-12-22 05:16:35

问题


Folks,

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

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

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).

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)

Any ideas?

Thanks,

Brett


回答1:


Okay,

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

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

and now all is well!



来源:https://stackoverflow.com/questions/5382239/request-for-wstestservice-asmx-jsdebug-returns-500-error-on-server-fine-in-deve

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!