WCF service configuration file question regarding

后端 未结 3 1821
醉梦人生
醉梦人生 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: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).

提交回复
热议问题