New Posts New Posts RSS Feed: SVC error when deployed to DiscountAsp
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

SVC error when deployed to DiscountAsp

 Post Reply Post Reply
Author
francois View Drop Down
Newbie
Newbie
Avatar

Joined: 12-Feb-2009
Posts: 12
Post Options Post Options   Quote francois Quote  Post ReplyReply Direct Link To This Post Topic: SVC error when deployed to DiscountAsp
    Posted: 25-Jan-2010 at 4:05am
Hi,
 
You will need to do two things to get this sorted out:
 
1) Edit serviceHostingEnvironment with baseAddressPrefix Filter eg.
 
<serviceHostingEnvironment aspNetCompatibilityEnabled="true">
 <baseAddressPrefixFilters>
        <add prefix="http://www.yoursite.com/"/>
      </baseAddressPrefixFilters>
 </serviceHostingEnvironment>
 
2) Ensure you have a factory defined in EntityServer.svc eg
 
<%@ServiceHost language="C#" 
 Service="IdeaBlade.EntityModel.Server.EntityServer"
 Factory="IdeaBlade.EntityModel.Server.ServerHostFactory"
%>
 
That should do it...
Back to Top
*Calsy View Drop Down
Groupie
Groupie


Joined: 02-Feb-2009
Location: Australia
Posts: 69
Post Options Post Options   Quote *Calsy Quote  Post ReplyReply Direct Link To This Post Posted: 21-Jan-2010 at 1:41pm
Hi All, Im just deploying our website to DiscountAsp web host. All going well until I went to run the web app and got a really nasty error when it tried to connect to the db. I tried to hit the entityservice.svc and got the following error message on the screen:
 
This collection already contains an address with scheme http.  There can be at most one address per scheme in this collection.
Parameter name: item
 
There seems to be a bit out there about manipulating the servicefactory for the service to fix this but i can see that the entityserver.svc file already points to an ideablade service factory so im drawing blanks on how i will fix it.
 
Thought i was about to cross the finish line but got slapped in the face by this bugger. PLEASE HELP.
 
Thanks
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down