httpd-cli-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary LaRock" <g...@actionengine.com>
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);
Response.OutputStream.Flush();

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

Gary

-----Original Message-----
From: eg ikki [mailto:ikkieg@hotmail.com] 
Sent: Thursday, March 24, 2005 6:29 PM
To: cli-users@httpd.apache.org
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
unable 
to complete your request.
.
More information about this error may be available in the server error
log.

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: cli-users-unsubscribe@httpd.apache.org
For additional commands, e-mail: cli-users-help@httpd.apache.org


Mime
View raw message