ASP.Net MVC Silverlight 3.0 & WCF - 404:Not found

Discussion in 'Silverlight' started by solusgroupr, Apr 15, 2010.

  1. I've successfully published an ASP .NET MVC web site that contains 4 SilverLight 3.0 clients as well as a SilverLight WCF service to 2 seperate IIS 6.0 servers. On each of those servers everything works great from the very first moment the web site was installed! Unfortunately, when publishing to my DiscountASP.Net web site, the SilverLight clients always report the error that the WCF service cannot be found (HTTP 404).

    For Silverlight to find the WCF service cross-domain support must be provided at the root of the IIS server (via a clientaccesspolicy.xml file).

    I've noticed that a number of other parties have hit this exact same wall when publishing to DiscountASP.Net, and none of them has apparently been able to resolve this DiscountASP.Net IIS server configuration problem. So it appears that DiscountASP.Net is not the hosting service of choice when using this combination of technologies.:rolleyes:

    So before I move my web site to some other hosting service, I thought I'd post a thread and see if anyone has overcome this dead end.

    If anyone knows how to overcome this barrier, let me know and I'll be glad to share my clientaccesspolicy.xml file, crossdomain.xml, web.config, etc.
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    what is the URL to your silverlight page?
     
  3. Bruce

    Bruce DiscountASP.NET Staff

    Are you calling a wcf or web service located outside of solusgrouprealty.com? If not, it is not cross domain and you shouldn't have any problem.

    In addition, the documentation MSFT posted is very misleading. You do not put the clientaccesspolicy.xml in the IIS root (there's really no such thing as IIS root) but rather you put it in the site root.

    Can you access the service directly?
     
  4. I've published this web site to numerous IIS servers and the web site functions 100% at all other IIS servers. I've found another hosting service that configures their IIS site to support SilverLight 3 and SilverLight 3 WCF servers.
     

Share This Page