WCF endpoint Configuration

Source: Internet
Author: User

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

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.