Linked Questions

1 vote
1 answer
7k views

I have always learned that never use using statement when calling WCF Service like this using (Service.YourClientProxy client = new Service.YourClientProxy()) { var time = client.Time(); } So I ...
user3046164's user avatar
0 votes
1 answer
1k views

I would like some clarity around the following (apologies in advance if this is a stupid question) Am working on some existing code which calls a WCF service. This code instantiates a WCF service ...
AdrianSean's user avatar
66 votes
8 answers
3k views

This was a telephone interview question I had: Is there a time when Dispose will not be called on an object whose scope is declared by a using block? My answer was no - even if an exception happens ...
AdamCrawford's user avatar
  • 5,168
75 votes
2 answers
137k views

I'm trying to connect an application (the client) to an exposed WCF service, but not through the application configuration file, but in code. How should I go about doing this?
Alex's user avatar
  • 7,632
32 votes
4 answers
33k views

We are using WCF service on the client side we are planning to explicitly close the connection It seems there are more then one way of closing Sample1: In the finally block of the WCF service ...
Balaji's user avatar
  • 2,189
49 votes
4 answers
30k views

I'm attempting to extend this answer on SO to make a WCF client retry on transient network failures and handle other situations that require a retry such as authentication expiration. Question: What ...
makerofthings7's user avatar
34 votes
4 answers
25k views

Consider the following code which is typcial of many ChannelFactory examples: WSHttpBinding myBinding = new WSHttpBinding(); EndpointAddress myEndpoint = new EndpointAddress( ConfigurationSettings....
Daniel Auger's user avatar
  • 12.6k
12 votes
3 answers
17k views

I'm writing a service that will only get calls from the local host. Performance is important so I thought I'd try the NetNamedPipeBinding instead of NetTcpBinding and see If I could see any noticeable ...
Markus Olsson's user avatar
34 votes
4 answers
14k views

I have implemented ClientBase to use WCF to connect to a service. I'm then calling a method on the channel to communicate with the service. base.Channel.CalculateSomething(); Is this call thread safe ...
Hnas's user avatar
  • 341
21 votes
4 answers
9k views

Simple question: I want to open a URL using the Default Browser, so I just do Process.Start(url). However, I noticed that this returns an IDisposable object. So now I wonder if I have to dispose it? ...
Michael Stum's user avatar
6 votes
12 answers
2k views

I understand that any time I am instantiating a class that implements IDisposable, I should use the using keyword in order to ensure that it's disposed of properly. Like so: using (SecureString s = ...
Ryan Ries's user avatar
  • 2,551
14 votes
2 answers
19k views

When a single ClientBase<T> instance is used for multiple WCF service calls, it can get a channel into a faulted state (ie. when the service is down). I would like to heal the channel ...
Jader Dias's user avatar
  • 91.1k
10 votes
3 answers
6k views

I've been wrapping all the code that invoke WCF calls within an using statement in a thought that the object will be disposed properly. When I'm googling for an exception "Http service located at .. ...
VJAI's user avatar
  • 32.9k
6 votes
4 answers
8k views

When you create and use a Web Service proxy class in the ASP.Net framework, the class ultimately inherits from Component, which implements IDisposable. I have never seen one example online where ...
Matt's user avatar
  • 61
11 votes
2 answers
21k views

We get "The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state." message when we close the application. Can ...
user avatar

15 30 50 per page
1
2 3 4 5