Custom tool warning when adding a service reference to a Silverlight Project

This article helps you resolve the custom tool warnings when you add a service reference to a Silverlight project.

Original product version:   Visual Studio Premium 2010, Visual Studio Professional 2010, Visual Studio Ultimate 2010
Original KB number:   2702288

Symptoms

When trying to add a Windows Communication Foundation (WCF) service reference to a Silverlight 4 or Silverlight 5 project in Visual Studio 2010, the following warnings may occur:

Custom tool warning: Endpoint 'NetTcpBinding_IService1' at address 'net.tcp://machine.mydomain.com:4502/WCFNetTcp/Service1.svc' is not compatible with Silverlight 5. Skipping...
Custom tool warning: No endpoints compatible with Silverlight 5 were found. The generated client class will not be usable unless endpoint information is provided via the constructor.

Cause

These warnings occur because Silverlight doesn't support WCF endpoints configured to work over a secure NetTcp binding, and the service being imported contains one or more secure NetTcp bindings.

Resolution

If the WCF service being imported only exposes the endpoint with a secure NetTcp binding, the Silverlight application won't be able to use that service until it's updated to expose a compatible endpoint. The documentation listed in the References section contains resources for adding compatible endpoints for WCF and Silverlight applications.

References