wcf failed

Discussion in 'Silverlight' started by work2gs, Jun 10, 2009.

  1. Hi

    I write a sample SL application 2.0 with a sample WCF service.

    I am using Windows 2008 - IIS 7.0

    I modify ServiceReferences.ClientConfig as following
    <endpoint address="http://www.yelobiz.com/Service1.svc"

    and define my client in page.xaml.cs

    ServiceReference1.Service1Client client;
    Uri address = new Uri(Application.Current.Host.Source, "../Service1.svc");
    client = new Service1Client("BasicHttpBinding_Service1", address.AbsoluteUri);


    but the call of any method from this wcf service fail.
    How i can debug this problem?
    any idea ?

    Thanks
    Fred
     
  2. If http://www.yelobiz.com/Service1.svc is the url that describes the actual location of your WCF service as you have it hosted in your domain, then you appear to have a problem with your service configuration and not your Silverlight code.

    The reason I say this is because when I put http://www.yelobiz.com/Service1.svc in the address bar of the browser, the service currently throws a runtime error; I would expect to see a valid service description page instead of an error. I can't see what type of error it is but you should be able to determine what's going wrong by changing your web.config error handling.

    Sorry I can't help further but that's all I can see from here.
     

Share This Page