[Mono-bugs] [Bug 53359][Wis] New - using System.Web.HttpContext.Current.Response.Cache object causes [WebMethod] calls to fail

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 26 Jan 2004 16:56:44 -0500 (EST)


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 chris@turchin.net.

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

--- shadow/53359	2004-01-26 16:56:44.000000000 -0500
+++ shadow/53359.tmp.10750	2004-01-26 16:56:44.000000000 -0500
@@ -0,0 +1,57 @@
+Bug#: 53359
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: chris@turchin.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: using System.Web.HttpContext.Current.Response.Cache object causes [WebMethod] calls to fail
+
+Description of Problem:
+
+This code: 
+
+HttpResponse res = HttpContext.Current.Response;
+DateTime latest = new DateTime(0);
+res.Cache.SetLastModified(latest);
+res.Cache.SetETag(latest.Ticks.ToString());
+
+in a [WebMethod] of a asmx web service will cause the method to fail
+(error:  The web service returned the following result: Error getting
+response stream)
+
+Steps to reproduce the problem:
+1. see attached code
+
+Actual Results:
+
+in the web services test form:  The web service returned the following result:
+
+Error getting response stream
+
+Expected Results:
+
+ The web service returned the following result:
+
+<?xml version="1.0" encoding="utf-8"?>
+<hello>
+  <world/>
+</hello>
+
+
+How often does this happen? 
+
+always, but only since upgrading mono/mcs from 0.29 to cvs versions last week. 
+
+Additional Information:
+
+in 0.29 this was not the case. works in ms.net framework...