none
Custom tool warning: No endpoints compatible with Silverlight 4 were found.

    Question

  • Warning 2 Custom tool warning: No endpoints compatible with Silverlight 4 were found. The generated client class will not be usable unless endpoint information is provided via the constructor.

    I am getting following warning when I try to add reference of WCF service (dual binding) Custom tool warning: No endpoints compatible with Silverlight 4 were found. The generated client class will not be usable unless endpoint information is provided via the constructor. Does silverlight not supporting binding other than basicHttp?? if yes, what are the other option for me? Please reply


    Many Thanks Deepak
    Monday, October 25, 2010 12:59 PM

Answers

  • wsDualHttpBinding is not supported in Silverlight. If you want to access a duplex service in SL you need to use the PollingDuplex binding (see links on my previous post)
    • Marked as answer by Deepak RA0 Wednesday, October 27, 2010 6:36 AM
    Tuesday, October 26, 2010 6:02 PM

All replies

  • Silverlight supports bindings other than basicHttpBinding - see the list supported in http://msdn.microsoft.com/en-us/library/cc896571(VS.95).aspx.

    For duplex services (which seems to be the case what you have), you can use the polling duplex binding, which is available in SL. See more information at http://msdn.microsoft.com/en-us/library/cc645026(VS.95).aspx.

    Monday, October 25, 2010 9:37 PM
  • here we go

     

    <system.serviceModel>
    
      <!--<serviceHostingEnvironment aspNetCompatibilityEnabled ="true" /> -->
    
      <diagnostics>
    
       <messageLogging logMalformedMessages="true" logMessagesAtTransportLevel="true" />
    
      </diagnostics>
    
      <services>
    
       <service behaviorConfiguration="PrinterStatusService.PrinterStatus" name="PrinterStatusService.PrinterStatus">
    
        <endpoint address="" binding="wsDualHttpBinding" contract="PrinterStatusService.IPrinterStatus" />
    
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
    
       </service>
    
      </services>
    
    
    
      <!--For debugging purposes set the includeExceptionDetailInFaults attribute to true-->
    
      <behaviors>
    
       <serviceBehaviors>
    
        <behavior name="PrinterStatusService.PrinterStatus">
    
         <serviceMetadata httpGetEnabled="True" />
    
         <serviceDebug includeExceptionDetailInFaults="False" />
    
        </behavior>
    
       </serviceBehaviors>
    
      </behaviors>
    
    
    
     </system.serviceModel>
    
    
    

    This is the configuration Carlos 


    Many Thanks Deepak
    Tuesday, October 26, 2010 6:27 AM
  • wsDualHttpBinding is not supported in Silverlight. If you want to access a duplex service in SL you need to use the PollingDuplex binding (see links on my previous post)
    • Marked as answer by Deepak RA0 Wednesday, October 27, 2010 6:36 AM
    Tuesday, October 26, 2010 6:02 PM
  • I have developed the small application demo using PollingDuplex. It was working fine.

    I am getting Cross domain error. Please help me

    I have uploaded code here...

    http://social.msdn.microsoft.com/Forums/en/wcf/thread/287e4022-7a9c-4f7c-a27f-1e3aa7767c8f

     

     

     

     


    Many Thanks Deepak
    Wednesday, October 27, 2010 6:58 AM