Available object not available

I am writing a tool for integrating with a web service, I have a method that simply creates an ImportExportSoapClient object that is used to call the API methods for the web service, but when I call one of the methods that I can not access the located System object. ServiceModel.Channels.ServiceChannel? Has anyone had a similar experience or could lend a hand?

+4
source share
2 answers

Perhaps you are trying to use an already closed CommunicationObject (e.g. ChannelFactory ). When an object is in the Closed or Closing state, you get an ObjectDisposedException .

MSDN Link: http://msdn.microsoft.com/en-us/library/ms405496.aspx

+4
source

I also had this problem, and this was because my client was trying to reuse the old connection that was hanging from the previous time when the client was started. The problem disappeared when I tried a minute or so,

0
source

All Articles