Bindung wcf mit asp.net

Ich bin versucht zu binden eine asp.net Seite wcf-Dienst gehostet wird, die von einer anderen website,

web.config-Datei für den client hat den code:

<endpoint address="http://localhost:1670/webhost/CustomersService.svc" binding="wsHttpBinding" bindingConfiguration="wsHttpBinding_ICustomersService" contract="CustomersService.ICustomersService" name="BasicHttpBinding_ICustomersService"/>
</client>

web.config-Datei für den service hat den code:

<endpoint address="" binding="wsHttpBinding" contract="CustomerServiceLibrary1.ICustomersService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>

und der Fehler ist :

Fehler 1 Referenz.svcmap: Die Bindung im system.serviceModel/bindings/wsHttpBinding nicht über eine konfigurierte verbindlich mit dem Namen 'wsHttpBinding_ICustomersService'. Dies ist ein Ungültiger Wert für bindingConfiguration. (C:\Users\Lara\Documents\Visual Studio 2010\Projects\CustomerServiceDemo\WebClient\web.config Zeile 25) App_WebReferences/CustomersService/.

InformationsquelleAutor Leen Rihawi | 2012-06-25

Schreibe einen Kommentar