views:

82

answers:

3

Hey 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,the data from the server will never returned. Can anyone shine some light on this and how can I debug silverlight app with WCF?

A: 

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...

Sergio
Are you receiving any kind of response from the server at all? Do not think soAre your silverlight applications configured to reference the correct web services (not the visual studio web server)? YesCan you browse to your WCF services in the browser and get a response?YesIt works fine when in visual studio.When hosted in IIS.I add the service reference for the service hosted in IIS and stops working.I can browse to the service and I even create a non-silverlight client to consume the service ,it works fine.How can I debug the silverlight when hosted in IIS.
Ybbest
A: 

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.

Graeme Bradbury
Can you tell more about how to use Attaching to process.It does not seems that I can debug silverlight using Attaching to process.
Ybbest
A: 

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.

jarek
Thanks,I redo the whole thing.It works not sure why.
Ybbest