Click here to Skip to main content
14,928,868 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a WCF REST web service that works fine on Visual Studio development server but fails when I publish it to the discountAspNet server. I'm using web deploy in Visual Studio to publish.

I've tried copying references.
And set authentication to only anonymous.

What am I missing?

The files get deployed and are visible through directory browsing, but return 404 when I test the GET and POST methods.
Posted
Updated 10-Nov-11 6:55am
v4

In this case the problem was solved by adding multipleSiteBindingsEnabled="true" to the web.config:
HTML
<servicehostingenvironment aspnetcompatibilityenabled="true" multiplesitebindingsenabled="true" />
See the discussion here:

http://stackoverflow.com/questions/561823/wcf-error-this-collection-already-contains-an-address-with-scheme-http[^]
   
v2

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