httpd-cli-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary LaRock" <>
Subject [cli-users] RE: mod_aspnet Response.WriteFile
Date Wed, 06 Apr 2005 18:34:05 GMT
I'm receiving the same error.  Don't know what the cause is, but the
same code works for me using IIS.  I was able to work around it with the
following snippet:

Stream fs = new FileStream(filepath, FileMode.Open);
byte[] bytes = new byte[fs.Length];
fs.Read(bytes, 0, bytes.Length);
Response.OutputStream.Write(bytes, 0, bytes.Length);

In a production environment it probably wouldn't hurt to do some
streaming if you're dealing with large files.  Hope that helps.


-----Original Message-----
From: eg ikki [] 
Sent: Thursday, March 24, 2005 6:29 PM
Subject: mod_aspnet Response.WriteFile

when trying to use Response.WriteFile
i get an error page saying

The server encountered an internal error or misconfiguration and was
to complete your request.
More information about this error may be available in the server error

but there is no info in the error.log

anybody have experienced the same thing
any way to get more debug info ?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message