Folks,
I have a simple test application in which I return a string from a web service without arguments.
This works fine under my d开发者_JS百科evelopment 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
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!
精彩评论