I worked through building a WCF web service on my development machine. I built the service, created a test client, tested everything and it works. I was starting to feel pretty good about this WCF stuff. Then I got gutsy and moved it to my production server.
For now, the production server is on WinHost.com. I have my testing domain, www.MyDomain.com, created an application folder, /websvc, and copied the web service files into it. The service address is http://www.MyDomain.com/websvc/eval.svc
Now that I've moved to the production server I can't use the web service. I get this error - "This collection already contains an address with scheme http." I googled the message for solutions, tried a few but that only led to other errors. So I reset everything and I'm starting over.
Based on the service address above, what should my web.config look like? Specifically, how should my endpoints look in it?
Here is what I have now...
<configuration>
<system.serviceModel>
<services>
<service name="EvalServiceLibrary.EvalService">
<endpoint address="http://www.MyDomain.com:80/websvc/mex"
binding="mexHttpBinding" contract="IMetadataExchange" />
<endpoint address="http://www.MyDomain.com:80/websvc/basic"
binding="basicHttpBinding" contract="EvalServiceLibrary.IEvalService" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="ServiceBehavior">
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>