Error message: There is already a listener for the IP endpoint 127.0.0.1:8235. This can happen if another application is already listening on this endpoint, or if there are multiple service endpoints in the service host that have the same IP endpoint but the binding configuration is incompatible.
WORKAROUND: You need to add code in the class Library app. Config file:
1<system.serviceModel>2<bindings>3<basicHttpBinding>4<binding name="nonesecurity"Maxbufferpoolsize="2147483647"Maxreceivedmessagesize="2147483647"usedefaultwebproxy="false">5<readerquotas maxstringcontentlength="2147483647"Maxarraylength="2147483647"/>6<security mode="None"/>7 8</binding>9</basicHttpBinding>Ten</bindings> One<servicehostingenvironment aspnetcompatibilityenabled="true"/> A<behaviors> - -<endpointBehaviors> the<behavior name="Domainservicebehavior"> -<webHttp/> -<!--Resolution: An incoming message has been exceeded (65536) is the maximum message size quota. To increase the quota, use the MaxReceivedMessageSize property on the corresponding binding element. - -<datacontractserializer maxitemsinobjectgraph="2147483647"/> +</behavior> -</endpointBehaviors> +</behaviors> A<services> at<service name="Zloserver.crossdomainservice"> -<endpoint address=""behaviorconfiguration="Domainservicebehavior"binding="webhttpbinding"contract="Zloserver.icrossdomainservice"/> - - - -</service> in</services> - to</system.serviceModel>
WCF endpoint Configuration