After adding a service reference to vs 2008, if you "Update" the service reference, or "delete" the service reference and add it again, this error will occur during running. This is because when the "update/Delete" service is referenced, the app. the config file is not automatically modified. After "Update" or "add" again, two identical "endpoints" will be generated. You need to manually delete the original endpoint to run properly.
App. config after the first addition
<Client>
<Endpoint address = "http: // localhost/wstest/testdalws. asmx" binding = "basichttpbinding"
Bindingconfiguration = "testdalwssoap6" Contract = "wsserver. testdalwssoap"
Name = "testdalwssoap6"/>
</Client>
There is only one corresponding <Bing>.
<Bindings>
<Basichttpbinding>
<Binding name = "testdalwssoap6" closetimeout = "00:01:00" opentimeout = "00:01:00"
Receivetimeout = "00:10:00" sendtimeout = "00:01:00" allowcookies = "false"
Bypassproxyonlocal = "false" hostnamecomparisonmode = "strongwildcard"
Maxbuffersize = "65536" maxbufferpoolsize = "524288" maxcompute edmessagesize = "65536"
Messageencoding = "text" textencoding = "UTF-8" transfermode = "buffered"
Usedefaultwebproxy = "true">
<Readerquotas maxdepth = "32" maxstringcontentlength = "8192" maxarraylength = "16384"
Maxbytesperread = "4096" maxnametablecharcount = "16384"/>
<Security mode = "NONE">
<Transport clientcredentialtype = "NONE" proxycredentialtype = "NONE"
Realm = "">
<Extendedprotectionpolicy policyenforcement = "never"/>
</Transport>
<Message clientcredentialtype = "username" algorithmsuite = "default"/>
</Security>
</Binding>
</Basichttpbinding>
</Bindings>
After "Update" or "add" again, two identical "endpoints" will be generated. You must manually delete the original endpoint to run properly.
After adding a service reference to vs 2008, if you "Update" the service reference, or "delete" the service reference and add it again, this error will occur during running. This is because the app. the config file is not automatically modified. After "Update" or "add" again, two identical "endpoints" will be generated. You need to manually delete the original endpoint to run properly.
App. config after the first addition
<Client>
<Endpoint address = "http: // localhost/wstest/testdalws. asmx" binding = "basichttpbinding"
Bindingconfiguration = "testdalwssoap6" Contract = "wsserver. testdalwssoap"
Name = "testdalwssoap6"/>
</Client>
There is only one corresponding <Bing>.
<Bindings>
<Basichttpbinding>
<Binding name = "testdalwssoap6" closetimeout = "00:01:00" opentimeout = "00:01:00"
Receivetimeout = "00:10:00" sendtimeout = "00:01:00" allowcookies = "false"
Bypassproxyonlocal = "false" hostnamecomparisonmode = "strongwildcard"
Maxbuffersize = "65536" maxbufferpoolsize = "524288" maxcompute edmessagesize = "65536"
Messageencoding = "text" textencoding = "UTF-8" transfermode = "buffered"
Usedefaultwebproxy = "true">
<Readerquotas maxdepth = "32" maxstringcontentlength = "8192" maxarraylength = "16384"
Maxbytesperread = "4096" maxnametablecharcount = "16384"/>
<Security mode = "NONE">
<Transport clientcredentialtype = "NONE" proxycredentialtype = "NONE"
Realm = "">
<Extendedprotectionpolicy policyenforcement = "never"/>
</Transport>
<Message clientcredentialtype = "username" algorithmsuite = "default"/>
</Security>
</Binding>
</Basichttpbinding>
</Bindings>
After "Update" or "add" again, two identical "endpoints" will be generated. You must manually delete the original endpoint to run properly.