Changing namespace of Stream

Posted by phenevo on Stack Overflow See other posts from Stack Overflow or by phenevo
Published on 2010-05-25T09:44:57Z Indexed on 2010/05/25 10:31 UTC
Read the original article Hit count: 318

Filed under:
|

Hi,

I've got asmx with method

[Webmethod]
public Ssytem.IO.Stream GetStream(string path)
{
...
}

and winforms application which has webreference to this webservice.

I cannot do something on my winforms application like something:

var myStream= (System.IO.Stream)client.GetStream(path);

because i

Cannot cast expression "MyWinformsApp.MyService.Stream" to Stream.

Why is that ?

© Stack Overflow or respective owner

Related posts about c#

Related posts about webservice