I have created a web service returning a memory stream. The client interfaces to the web service via a service reference. When I try to use the stream in my client from the web service, I get the following error:
Cannot convert type 'interchangeCalculations.i
m' to 'System.IO.MemoryStream'
This makes no sense to me since a memory stream is a just a memory stream. This worked in my test app when I was creating and processing the stream in the same application. Now that I am connecting the client to a web service to get the stream, it fails. How do I get around this? The below cast for the memory stream also fails.
MemoryStream streamBinary = (MemoryStream)myIccWebService.getEftTranDataBinarySerialized(startTime, endTime);
sicInfoDataSetNotTyped = binaryDeSerialize(streamBinary);