Silverlight and WCF: NotFound error!

前端 未结 2 1989
长情又很酷
长情又很酷 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: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.

提交回复
热议问题