When 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' is set to true in c

Posted by SheoNarayan under Error and Solution on 3/4/2011 | Points: 10 | Views : 29242 | Status : [Administrator] | Replies : 2

I was getting below error when I specified endpoint explicitly to my service project.

When 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' is set to true in configuration, the endpoints are required to specify a relative address. If you are specifying a relative listen URI on the endpoint, then the address can be absolute. To fix this problem, specify a relative uri for endpoint 'http://localhost:8018/WcfBinding'. 


Solution

In order to resolve this issue, specify
<serviceHostingEnvironment multipleSiteBindingsEnabled="false"  />


Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com



Responses

Posted by: Madhu.b.rokkam on: 3/4/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Thanks for sharing this info with all Sheo...

Thanks and Regards
Madhu

SheoNarayan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 3/4/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Good one Sheo!!!

Thanks
Karthik
www.f5Debug.net

SheoNarayan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response