This is a mirror of official site: http://jasper-net.blogspot.com/

Visual Studio 2010 Tips: Debug WCF Services in Silverlight Apps

| Sunday, November 7, 2010
Q. In previous Silverlight applications, I created my Windows Communication Foundation (WCF) services by adding a new WCF service item to my Web Project and filling in the code behind. This has lead to problems testing and debugging my service configurations. Is there a better way to add a WCF service?

A. There are many ways to create a WCF service, but the method I'll describe makes it easier to troubleshoot problems and take advantage of the lightweight WCF configuration options offered in Visual Studio 2010.

The simplest way to add a service for your Silverlight application is to add a WCF Service item to the Web application project of your Silverlight solution. When you add a service named TestServiceCB, Visual Studio creates an interface with a sample service definition:

Read more: Visual Studio Magazine

Posted via email from .NET Info

0 comments: