[Mono-bugs] [Bug 76145][Nor] New - "Response.WriteFile" conflicts with OutputCache, returns empty page

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Sep 19 10:51:17 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by junk at coolest.com.

http://bugzilla.ximian.com/show_bug.cgi?id=76145

--- shadow/76145	2005-09-19 10:51:17.000000000 -0400
+++ shadow/76145.tmp.6203	2005-09-19 10:51:17.000000000 -0400
@@ -0,0 +1,45 @@
+Bug#: 76145
+Product: Mono: Class Libraries
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: Linux 2.6.10-1.770_FC2 #1 Sat Feb 26 21:40:22 EST 2005 i686 athlon i386 GNU/Linux
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: junk at coolest.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: "Response.WriteFile" conflicts with OutputCache, returns empty page
+
+Description of Problem:
+"Response.WriteFile" conflicting with OutputCache, returns empty page.
+
+Steps to reproduce the problem:
+Create aspx with following, uncomment OutputCache to reproduce problem.
+
+<%@ Page Language="c#"
+    AutoEventWireup="False" EnableSessionState="False"
+EnableViewState="False" %>
+<%@ OutputCache Duration="600" VaryByParam="None" Location="Server" %>
+<% Response.WriteFile("/home/fred/web/robots.txt"); %>
+
+Actual Results:
+<html><body></body></html>
+
+Expected Results:
+[contents of "/home/fred/web/robots.txt"]
+
+How often does this happen? 
+Always
+
+Additional Information:
+Commenting out/removing the OutputCache directive fixes the problem, so
+possibly the WriteFile function is closing the Response or something before
+the OutputCache can handle it?
+
+Occurs in svn repo ver.


More information about the mono-bugs mailing list