Because multiple endpoints of the Protocol are configured. Follow the name to indicate the preferred endpoint configuration section.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.