[Mono-list] Request.InputStream exception
Gonzalo Paniagua Javier
gonzalo at ximian.com
Mon Sep 19 18:58:30 EDT 2005
On Wed, 2005-09-14 at 23:16 +0200, Peter wrote:
> Hello,
>
> I am trying to implement an IHttpHandler, using the following code to read the content of the request:
>
> ...
>
> public void ProcessRequest(HttpContext context)
> {
> try
> {
> StreamReader _streamReader = new StreamReader(context.Request.InputStream);
> string _request = _streamReader.ReadToEnd();
> this._context = context;
> this.RequestRouter();
> }
> catch
> {
> throw;
> }
> }
> ...
>
> I get an exception:
>
> Error Message: HTTP 500.
Given that code, what do you do to trigger the error? A GET request? A
POST or what?
If you can come up with a simple test case that works on MS and fails on
mono, please, report it using bugzilla.ximian.com with all the files and
explanations needed to reproduce it.
Thanks.
-Gonzalo
More information about the Mono-list
mailing list