MORE INFORMATION
I found an article on the web that says to use a custom service factory (see http://alpascual.com/blog/silverlight-svc-web-service-problems-on-iis/)
So I amended SiteMetrics.scv to read like this:
<%@ ServiceHost Language="C#" Debug="true" Factory="CustomHostFactory" Service="SiteMetrics" CodeBehind="/App_Code/SiteMetrics.cs" %>
Then I amended App_Code/SiteMetrics.cs to add in this:
public class CustomHostFactory : ServiceHostFactory
{
protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses)
{
CustomHost customServiceHost =
new CustomHost(serviceType, baseAddresses[0]);
return customServiceHost;
}
}
public class CustomHost : ServiceHost
{
public CustomHost(Type serviceType, params Uri[] baseAddresses)
: base(serviceType, baseAddresses)
{ }
protected override void ApplyConfiguration()
{
base.ApplyConfiguration();
}
}
Now I at least can get the Silverlight charts to work but only in http mode not https mode.
However I am still mystified as to why it all works on the same server/IIS on the test web app which is also https.
|