Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How do i add an IIS-6 hosted WCF-service service reference to a client application. i tried to do it but this is what i get;

"There was an error downloading 'http://localhost/IISHostService/Service.svc'.
The request failed with HTTP status 404: Not Found.
Metadata contains a reference that cannot be resolved: 'http://localhost/IISHostService/Service.svc'.
The remote server returned an unexpected response: (405) Method Not Allowed.
The remote server returned an error: (405) Method Not Allowed.
If the service is defined in the current solution, try building the solution and adding the service reference again."
Posted

1 solution

It's usually the .svc mapping that needs to be configued...lots of google hits on this

http://www.google.co.uk/search?q=WCF+SERVICE+IN+IIS6[^]

Have a look here

http://stackoverflow.com/questions/451701/wcf-not-running-under-iis-6-0[^]
 
Share this answer
 
Comments
thusolebalang 20-Feb-12 11:35am    
Thanks Dylan i followed the links and i got the solution. I had to run these; 1. C:\Windows\Microsoft.NET\Framework\v2.0.50727\
and then run:
-aspnet_regiis -i
2. C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation
and then run:
ServiceModelReg.exe -i
and it worked for me. it was to do with the .svc extension.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900