I am doing an simple Siverlight app talk to server using WCF.When I run the app in visual studio,it works fine .However,when I hosted unders IIS,开发者_如何学Cthe data from the server will never returned. Can anyone shine some light on this and how can I debug silverlight app with WCF?
you can try fiddler. or enable wcf logging on a website that hosts your service, which will give you even more information. Read more here.
Are you receiving any kind of response from the server at all? Are your silverlight applications configured to reference the correct web services (not the visual studio web server)? Can you browse to your WCF services in the browser and get a response? www.example.com/myservice.svc
Just a few ideas...
Use Attach to process. Remember Silverlight is running on the client so you can open the app in IE and then attach visual studio to it.
You may also want to look at Fiddler to check the traffic is going to the right place.
精彩评论