Debugging WCF services in Silverlight

Hi folks – check out this new SilverlightTV video, going over some of the common errors you may encounter when using WCF services from Silverlight: Silverlight TV 46: What’s Wrong with my WCF Service? Direct link Cheers, -Yavor Georgiev Program Manager, WCF


PollingDuplex multiple mode timeouts demystified

The new MultipleMessagesPerPoll mode added to PollingDuplex in Silverlight 4, comes with some new timeouts , so I thought it would be useful to post a detailed description of how those work. Unfortunately this is not currently covered by our documentation, which is something we are looking to address in upcoming documentation refreshes. This is…


Workaround for accessing some ASMX services from Silverlight 4

On this blog we normally talk about building and accessing WCF services, since that is the recommended way to build services for Silverlight. However, we continue to support ASMX services using the familiar “Add Service Reference” feature. Just recently some folks trying to talk to the ASMX services that SharePoint 2010 exposes brought an interesting…


Workaround for StackOverflowException when using SlSvcUtil.exe

Some developers reported to us they were experiencing StackOverflowException when using SlSvcUtil.exe that shipped with the SL4 SDK. Upon investigation, we discovered that this happens on machines with a system language set to something else than US English. Fortunately, this can be fixed neatly by using an application configuration file. Create a file named SlSvcUtil.exe.config that you…


Dealing with those pesky WCF CommunicationException “NotFound” errors in Silverlight

We have blogged and written about this before, but it keeps coming back as a major pain point when customers get started with WCF in Silverlight. Out of the box, exceptions are not propagated from the WCF service to the Silverlight client. Instead, you get an annoying CommunicationException containing the text “NotFound”. This is not…


Policy file for NetTcp

As part of Silverlight 4, developers can now use the NetTcp framing protocol for their web services. This is an addition that we expect a lot of you will find useful. However, many of you will probably hit the dreaded CommunicationException that lurks the unsuspecting developer as soon as he tries to establish that first…


Tracing PollingDuplex in Silverlight 4

Did you know it is now easier to debug the server side PollingDuplex in Silverlight 4? With the addition of tracing, you can now get a peek at what is happening internally within your service. Traces from PollingDuplex will include information about what failed in communicating with your clients and how it was handled. Enabling…


Some known WCF issues in Silverlight 4

When shipping a product, there are always a handful of painful issues that we unfortunately cannot fix due to schedule pressure. One thing we can do is blog about these issues early and provide workarounds, so customers don’t have to spend countless hours debugging. Here is the list of known issues in the WCF stack….


Some known issues in SL3 Beta

We’ve run across some issues with our web services features in the Silverlight 3 Beta and I want to share these here to hopefully save folks some time and frustration. Issue: On Windows 7 Beta, you might encounter the following error when generating a proxy: “The element ‘httpTransport’ cannot contain child element ‘extendedProtectionPolicy’ because the…


Debugging Web Service Usage in Silverlight 2

(Cross-posted from http://eugeneos.blogspot.com/2008/04/debugging-web-service-usage-in.html)  Silverlight 2 Beta1 makes it easy to use Web Services based on either the WCF technology (Windows Communication Foundation), the “.asmx” technology (ASP.NET Web Services), or practically any other SOAP platform. Unfortunately, when something goes wrong with service consumption, you often run into cryptic and incomprehensible error messages that don’t help you…