WCF service configuration file question regarding

后端 未结 3 1793
醉梦人生
醉梦人生 2020-11-29 07:33

From what I\'ve seen the tag is ignored when hosting a WCF service in IIS. I understand that when self-hosting this is required but is this harmful or even used when opera

相关标签:
3条回答
  • 2020-11-29 08:17

    According to the MSDN Microsoft documentation in the below link, midway through the page in the Note section states, "Services hosted under Internet Information Services (IIS) or Windows Process Activation Service (WAS) use the virtual directory as their base address."

    http://msdn.microsoft.com/en-us/library/ee358768(v=vs.110).aspx

    0 讨论(0)
  • 2020-11-29 08:20

    base address required for selfhosting. IIS/WAS hosts ignores the base address.

    0 讨论(0)
  • 2020-11-29 08:21

    As you have guessed, the baseAddresses element is completely ignored when hosting in IIS. The service's base address is determined by the web site & virtual directory into which your wcf service is placed.

    Even when self-hosting, baseAddresses is not required. It is merely a convenience that avoids you having to enter a full address for each endpoint. If it is present, the endpoints can have relative addresses (relative to the base address, that is).

    0 讨论(0)
提交回复
热议问题