System.ServiceModel.ServiceHost, cannot be used for communication because it is in the Faulted state

GrimSmiler picture GrimSmiler · Aug 14, 2013 · Viewed 27.7k times · Source

Receiving this error when trying to work with the queue:

Unexpected error occured: The communication object, System.ServiceModel.ServiceHost, cannot be used for communication because it is in the Faulted state. at System.ServiceModel.Channels.CommunicationObject.Close(TimeSpan timeout)

How to overcome it?

Update: answer to my solution posted at the end

Answer

aashish saxena picture aashish saxena · Feb 5, 2015

This problem is due to access rights. Start Visual Studio with administrative rights and the problem will be resolved. To start Visual Studio with admin rights right click the Visual Studio icon and select "Run As Administrator".