Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 977
bnieland Avatar asked Mar 21 '11 18:03

bnieland


1 Answers

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!

like image 153
bnieland Avatar answered Nov 09 '22 08:11

bnieland