Sitefinity 4.0 Beta: Deploying projects to ISPs
I deployed a SF 4.0 Beta project to my isp.
1) Deployed the db. Worked fine.
2) Depoyed the web site files
3) Edited the data config file and changed the connection string.
Now, i can hit the SF site fine. Its just one page: http://www.partnerrock.com/
But if i hit the SF admin area, i run into a problem. The dashboard comes up fine, but clicking the Pages option returns this error:
Message from webpage: This collection already contains an address with schemd http. : There can be at most one address per scheme in this collection. <br>parameter name: item
This occurs each time i click the Pages tab. Other tabs seem to work fine.
Ken
Hey Ken,
using System;using System.Collections.Generic;using System.Web;using System.ServiceModel;using System.Configuration;namespace MySite.Web.Services public class WcfHostFactory : Telerik.Sitefinity.Web.Services.WcfHostFactory public WcfHostFactory() : base() protected override ServiceHost CreateServiceHost(Type type, Uri[] uri) string baseServiceHost = ConfigurationManager.AppSettings["baseServiceHost"]; IDictionary<string, int> schemes = new Dictionary<string, int>(); List<Uri> clean = new List<Uri>(); for (int i = 0; i < uri.Length; i++) try if (uri[i].Host == baseServiceHost) schemes.Add(uri[i].Scheme, i); clean.Add(uri[i]); catch (ArgumentException) return base.CreateServiceHost(type, clean.ToArray()); <%@ ServiceHost Language="C#" Debug="true" Service="Telerik.Sitefinity.Modules.Pages.Web.Services.PagesService" Factory="MySite.Web.Services.WcfHostFactory" %><add key="baseServiceHost" value="www.partnerrock.com"/>Hi Bryan,
Thank you for providing the workaround. We are going to resolve this issue by providing the ability to set default bindings for services.
Greetings,
Radoslav Georgiev
the Telerik team
Did you try setting the baseAddressPrefixFilters element in your web.config?
<system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled="true"> <baseAddressPrefixFilters> <add prefix="http://www.partnerrock.com/" /> </baseAddressPrefixFilters> </serviceHostingEnvironment><system.serviceModel>