The reasons are:
With C # in VS 2008, theApp. Config file is not automatically modified after multiple Add/remove service references.
After adding/removing, multiple "endpoint" are generated and can be deleted manually.
What's in app. config:
<client>
<endpoint address= "Http://localhost:8080/WebService/UserInfoPort"
binding= "BasicHttpBinding" bindingconfiguration= "Weatherwebservicesoap"
contract= "Weather.weatherwebservicesoap" name= "Weatherwebservicesoap"/>
</client>
<client>
<endpoint address= "http://localhost:8080/webservice/userinfoport"
binding= "BasicHttpBinding" bindingconfiguration= "Weatherwebservicesoap"
contract= "Weather.weatherwebservicesoap" name= "Weatherwebservicesoap"/>
<endpoint address= "http://localhost:8080/webservice/userinfoport2"
binding= "BasicHttpBinding" bindingconfiguration= "Weatherwebservicesoap"
contract= "Weather.weatherwebservicesoap" name= "Weatherwebservicesoap"/>
</client>
The
Failed to load the endpoint configuration portion of the contract as "Javawebservice.userinfodelegate" because multiple endpoint configurations for the contract were found. Please indicate the preferred endpoint configuration section by name.