[Mono-bugs] [Bug 45870][Maj] New - OpenRead does not function correctly from ASPX page

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sat, 5 Jul 2003 19:44:08 -0400 (EDT)

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 blackhawk@ivanhawkes.com.


--- shadow/45870	Sat Jul  5 19:44:08 2003
+++ shadow/45870.tmp.26489	Sat Jul  5 19:44:08 2003
@@ -0,0 +1,54 @@
+Bug#: 45870
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Red Hat 9.0
+OS Details: 
+Status: NEW   
+Priority: Major
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: blackhawk@ivanhawkes.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: OpenRead does not function correctly from ASPX page
+Description of Problem:
+When using OpenRead to read an XSL file the read operation never returns.
+Steps to reproduce the problem:
+Dump this code into a simple standalone program and also an ASPX page in
+the Page_Load event.
+using System.Net;
+using System.IO;
+Console.WriteLine ("Getting test file");
+Stream s = null;
+using (s) {
+	WebClient wc = new WebClient ();
+	s = wc.OpenRead ("file:///home/ivan/christinahawkes/StyleSheets/news.xsl");
+	wc.Dispose ();
+Console.WriteLine ("Got test file");
+Obviously the file to load should exist on your system, so change my file
+with one that you have available.
+Actual Results:
+In stand alone program you get the contents of the file returned. In ASPX
+you time-out and nothing is ever returned.
+Expected Results:
+The file contents should be returned.
+How often does this happen? 
+Every time.
+Additional Information:
+Using mcs/mono from CVS checkout today.