Tags: , | Posted by blockwood on 3/21/2010 12:53 PM | Comments (0)

This collection already contains an address with scheme http.  There can be at most one address per scheme in this collection.

I found in documentation prefixfilters which allow the use of ado.net dataservice with multiple host headers on website. There must be some setting in web.config like

<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true">
<baseAddressPrefixFilters>
<add prefix=http://www.yourdomain.com/>
</baseAddressPrefixFilters>
</serviceHostingEnvironment>
</system.serviceModel>
</configuration>

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5