Attention: We are retiring the ASP.NET Community Blogs. Learn more >

Tip 1 : WCF Service Deployment: Leave IIS-Hosted Service Endpoint Address Blank

In client configuration, it is required to specify an absolute address of endpoint. However, in IIS-hosted service configuration, it is required to specify a relative address.  IIS manages the ServiceHost instance, which provides base address for service.

For example, given a service URL  http://www.stanleygu.com/Demo.svc

In client configuration, use the absolute address:

<client>

   <endpoint address="http://www.stanleygu.com/Demo.svc" binding = "customBinding"          

In IIS-hosted service configuration, use the relative address.

<service behaviorConfiguration="StanleyGu.DemoBehavior" name="StanleyGu.Demo">

   <endpoint address="" binding="customBinding"

2 Comments

  • expected 100 microblogging scale allowing users risk

  • That the next time I just read a weblog, I actually hope which it doesnt disappoint me up to
    this one. Discover real, Yes, it was my choice to read, on the other
    hand I personally thought youd have something interesting to convey.
    All I hear can be a handful of whining about something you could fix
    in the event you werent too busy trying to lookup out attention.

Comments have been disabled for this content.