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:[EMAIL PROTECTED] 
Sent: Thursday, March 24, 2005 6:29 PM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to