7

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

bnieland
  • 6,047
  • 4
  • 40
  • 66
  • 1
    What happens when you load http://localhost/Tests/WebServiceTests/TestWebServiceProxy/wsTestService.asmx in a browser? What about http://localhost/Tests/WebServiceTests/TestWebServiceProxy/wsTestService.asmx?wsdl – Justin Dearing Mar 21 '11 at 21:49

1 Answers1

15

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!

bnieland
  • 6,047
  • 4
  • 40
  • 66