Omicron Llama

Coding all day, every day.


ASP.NET Modules – reading InputStream with StreamReader

If, like me, if you’ve gotten into habit of wrapping most things that implement IDisposable in a ‘using’ statement, then you’ll be wondering why the hell you can’t read from the Requests’s InputStream property using a StreamReader without your request pipeline breaking. Turns out, that you mustn’t dispose of the StreamReader immediately, as when you […]