WebService Error: Unable to load endpoint configuration portion of contract for XXX because multiple endpoint configurations for the contract were foundWebService Error: Unable to load endpoint configuration portion of contract for XXX because multiple endpoint configurations for the contract were found
This issue occurs after you update the WebService server.
This error occurs at run time when the service reference is added in VS 2008, if the "Update" service reference, or "delete" the service reference after it is added again. This is because when the "update/delete" service reference, the app. Config file is not automatically modified, after "update" or "join" again, will generate two of the same "endpoint", need to manually delete the original to run properly. The first time you join app. Config <client> <endpoint address= "Http://localhost/WSTest/TestDalWS.asmx" binding= "BasicHttpBinding" bindingconfiguration= "TESTDALWSSOAP6" contract= "Wsserver.testdalwssoap" Name= "TestDalWSSoap6"/> </client> The corresponding <bing> has only one. <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" maxreceivedmessagesize= "65536" messageencoding= "Text" textencoding= "Utf-8" transfermode= "Buffered" Usedefaultwebproxy= "true" > <readerquotas maxdepth= "+" 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 "join" again, will generate two the same "endpoint", need to manually delete the original to run properly. |
WebService Error: Unable to load endpoint configuration portion of contract for XXX because multiple endpoint configurations for the contract were found