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
2009-10-11 22:23:15
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
2009-10-11 22:30:19
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
2009-10-12 08:03:29
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
2009-10-12 21:12:53