I'm developing a WCF service (with Visual Studio 2008 SP1) and using a Console Application to test this service. My solution containsÃÂ the following project
AÃÂ Console Application (to testÃÂ the service)
A WCF Service LibraryÃÂ ÃÂ
A Bussines Class Library
And a WCF Service Application (to publish the service in IIS).
Everything is ok. The service is published and the client is able to consume the operations. But when I was testing the exception treatment some thing too weird is happing.
Take a look at the follow code parts and the comment on what is happen:
I start a common service call whit these statements (in cosole application):
ModeloVeiculoClient client = null;
client = new ModeloVeiculoClient();
ServiceResponse<List<Modelo>> sr = client.ObterTodos();<br/> Console.WriteLine("Everything is fine!!");
if (client.State != CommunicationState.Closed)
ObterTodos() method of the client object is the service operation. W
View Complete Post