Silverlight and WCF: NotFound error!

前端 未结 2 1988
长情又很酷
长情又很酷 2021-01-21 03:05

I have WCF method like so:

    public string GetSomething(MyObject obj)
    {
        return \"Something\";
    }

When I call this from my silv

相关标签:
2条回答
  • 2021-01-21 03:34

    I have used the WcfTestClient.exe to debug my WCF services. It gives a much more user friendly error message. If you want to set up Silverlight to receieve WCF faults, I found this page on Data Performance and Fault Strategies in Silverlight 3 to be helpful.

    (http://msdn.microsoft.com/en-us/magazine/ee294456.aspx)

    0 讨论(0)
  • 2021-01-21 03:44

    That "Not Found" error is perhaps the single most annoying feature of Silverlight WCF access.

    You may want to look into the Service Trace Viewer Tool (here). It's not always helpful (I've run into lots of problems that it wasn't able to help with), but about 10-20% of the time, it'll point me in the right direction.

    You may also want to try adding the SilverlightFaultBehavior to your service. It can turn at least some of those "Not Found" error messages into real faults.

    0 讨论(0)
提交回复
热议问题