Custom tool warning: No endpoints compatible with Silverlight 2 were found

by Viper 10. March 2009 18:40

When you use Add Service Reference wizard to add a reference to existing WCF service to your silverlight application, you may run into this warning. The description of the warning has all the details about the issue and also tells you what to do to fix it. Now you are wondering why this happened. When you use Visual Studio to create WCF project, you will notice that it generates a configuration file for your service as well where you can configure endpoint, bindings etc. for your WCF service. If you have not modified your configuration file, you may notice something like below set as endpoint.

<endpoint address="" binding="wsHttpBinding" 
contract="ByteBlocks.ForExService.ICurrencyService">

Notice that binding is set to wsHttpBinding. This is the binding that provides you connectivity over HTTP/HTTPS with features like reliability, security etc. as specified in WS* protocol. The problem is that Silverlight 2 applications can only connect with ASMX-based web services or services that conform to WS-I Basic Profile 1.1. What that means is that Silverlight applications can only create BasicHttpbinding. So if you modify your service to expose an endpoint that implements basicHttpBinding you are good to go. If your existing WCF service is not tightly coupled with any of WS* features then you can change the existing configuration file as below.

<endpoint address="" binding="basicHttpBinding" 
contract="ByteBlocks.ForExService.ICurrencyService">

Now if you try Add Service Reference tool to add reference to your WCF service, you will not see such warning and a nice set of proxy classes will be created for you to start communicating with WCF service.

Views: 6318

Tags: ,

Silverlight | WCF

Comments

7/13/2009 11:13:30 AM #

magic of making up review

Very interesting post - Might be old new, but it was new to me. Thanks.

magic of making up review United States

7/23/2009 5:45:36 PM #

Baume Mercier

Would you like to post a guest post on my blog?

Baume Mercier United States

8/13/2009 7:11:21 PM #

Swiss Military 06 4096

Please let me know if you are interested to work as article writer for me? I can offer $10/article.

Swiss Military 06 4096 United States

8/15/2009 12:24:37 AM #

Momentum Lugano Mens Alligator

Would you like to post a guest post on my blog?

Momentum Lugano Mens Alligator United States

9/30/2009 6:09:35 AM #

soak away

Custom tool warning No endpoints compatible with Silverlight 2  , ok that got me curious. I have  begun to develop utilising Silverlight but I am finding it is a large learning curve.  My recent experience is with php, mysql, most linux based tools and flash. The problems of utilising Silverlight to get a good page that functions speedily in all the established web browsers, Internet Explorer, Safari, Firefox and Google Chrome seems a big headache that I find is taking several hours to solve.  Interesting to study your thoughts and the comments in your site on Silverlight.  I feel the tutorial websites and Microsofts offering are rigid and cover the identical items, discussion in blogs often covers factual ways to beat problems that takes me through the learning curve more quickly.  Thank you for the note, it has helped in a small way to take me through the migration.

soak away United Kingdom

10/14/2009 10:54:39 AM #

top search engine ranking

valuable information and excellent design you got here! I would like to thank you for sharing your thoughts and time into the stuff you post!! Thumbs up

top search engine ranking United States

10/19/2009 11:42:09 AM #

cash loans

Just wanted to say thanks for this.

cash loans United States

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered by BlogEngine.NET 1.5.1.7
Theme by Naveen Kohli