.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

net.tcp DiscoveryClientProtocol

Posted By:      Posted Date: September 17, 2010    Points: 0   Category :WCF
Is it possible to do something like this for tcp bindings:   DiscoveryClientProtocol client = new DiscoveryClientProtocol(); // Use default credentials to access the URL being discovered. client.Credentials = CredentialCache.DefaultCredentials; DiscoveryDocument dd = client.Discover(serviceURI);   I'm just trying to test whether a specific service is alive. The above example works just fine with http, but when trying tcp it throws an invalid URI prefix exception. Thanks,

View Complete Post

More Related Resource Links

DiscoveryClientProtocol Error




I am facing problem with windows service which is trying to call DiscoveryClientProtocol.DiscoverAny(url). It gives the error message saying that proxy connection timed out. But if the windows service runs under admin account then it works perfectly alright. How do i make the windows service run under a normal domain user account and make this work?

url here is of a WCF service.

System.Web.Services.Discovery.DiscoveryClientProtocol discovery =

new System.Web.Services.Discovery.DiscoveryClientProtocol();

discovery.Timeout = 300000;

discovery.AllowAutoRedirect = true;

discovery.DiscoverAny(url); //fails here



Please guide me.


Many thanks


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend