Wrap MemoryStream in a using block REST WCF
Posted
by Mark
on Stack Overflow
See other posts from Stack Overflow
or by Mark
Published on 2010-06-17T09:30:00Z
Indexed on
2010/06/17
9:33 UTC
Read the original article
Hit count: 222
I'm learning REST to implement some Services with WCF. I implemented an example with a MemoryStream. Because MemoryStream is Disposable I wrapped it in a using. When I do this I sometimes can see the xml response in the browser (IE8) and sometimes it will just show me the following Errormessage:
The download of the specified resource has failed. Error processing resource 'http://localhost:8889/SimpleGetService/'.
Why does this occur? When I don't wrap it in a using, I never seem to get the error.
© Stack Overflow or respective owner