This topic has not yet been rated Rate this topic

<baseAddresses>

Represents a collection of baseAddress elements, which are base addresses for a service host in a self-hosted environment. If a base address is present, endpoints can be configured with addresses relative to the base address.

<system.serviceModel>
  <client>
    <endpoint>
      <host>
        <baseAddresses>

<baseAddresses>
   <add baseAddress="string" />
</baseAddresses>

Type

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child Elements

Element Description

<add> of <baseAddresses>

A configuration element that specifies the base addresses used by the service host.

Parent Elements

Element Description

<host>

A configuration element that specifies settings for a service host.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Important to note: This is completely ignored when hosting in IIS.
If you get "Could not find a base address that matches scheme https for the endpoint with binding BasicHttpBinding" at some point and you're hosting in IIS then don't bother trying to mess around with <baseAddresses>.

You might need to add a protocol binding to IIS, this is not to be confused with WCF bindings. If you are adding Secure transport (SSL) then add the HTTPS binding to IIS and choose your certificate.