JG Vimalan's Blog

It is all about coding!

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

I got the error message (The communication object, System.ServiceModel.ChannelFactory…, cannot be used for communication because it is in the Faulted state.) in the production system, which was working fine for months. I found that, the WCF service is up and running and it is able to connect to database and is connected to the application as well. So, to fix this issue I followed the steps given below.

a. Stop the application pool of the application which is consuming the WCF service.

b. Browse to the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

c. Delete the temp folder of the application which is using the WCF service. (The reason is, even though you restart IIS, the corrupted files will be here and it will cause the issue)

e. Start the application pool.

That’s it! This resolved my issue and the application started to work normally. Although, I am not clear on what exactly happened to cause this issue, I found the solution.

Advertisements

September 8, 2011 - Posted by | ASP.NET, WCF

1 Comment »

  1. That was very helpful, thanks!

    Comment by Eduardo Ferrón | December 18, 2011 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: