Click here to Skip to main content
15,885,141 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Dear Sir,


How to solve this error:

The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.


Way me.
Posted

There are many threads on this topic: Google Search[^].

The first link on the page: MSDN Forum looks quite promising.

I'm not entirely sure on this one, but it too looks promising: http://blog.ehuna.org/2011/02/how_to_fix_the_error_the_commu.html[^]
 
Share this answer
 
Avoid placing client proxies in using statement

Wrong:
C#
using(var testSvc = testService.Test())
{
   // Code here
}


Correct:
C#
var testSvc = testService.Test();
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900