When would the .NET client give the following exception?System.InvalidOperationException : {"The stream does not support reading."}

When would the .NET client give the following exception?System.InvalidOperationException : {"The stream does not support reading."}

book

Article ID: KB0089848

calendar_today

Updated On:

Products Versions
TIBCO Enterprise Message Service -
Not Applicable -

Description

Resolution:
This exception could be thrown at the creation of the stream: TcpClient.GetStream(), when EMS .NET library used it for sending/receiving data. i.e. the open socket could not be used for read at that point of time. This is not a problem with EMS API; rather it might be a problem with Microsoft.

Solution: The issue was happening while using EMS 4.3 libraries with .NET 2.0 frameworks, which was not tested with EMS 4.3 dll. After upgrading to EMS 4.4, such exceptions were not occurring any more.

Issue/Introduction

When would the .NET client give the following exception?System.InvalidOperationException : {"The stream does not support reading."}