简体   繁体   中英

WCF Service without Configuration

I have a wcf service (not self hosted).

When I deleted the section from web.config

<services>
  <service name="Namespace.A">
    <endpoint address="" binding="basicHttpBinding" name="A_EndpointBinding" contract="A" /> 
  </service>
</services>

it works.

How could that be possible ? Does it occur any problem without that ?

If you can successfully connect and use the service (Namespace.A) using HTTP, then you should have nothing to worry about!

What's happening is either the above is misconfigured or its interfering with other settings and/or hard-coded functionality.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM