[Mono-bugs] [Bug 52521][Nor] New - aspx file locked after invocation
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sat, 3 Jan 2004 11:07:00 -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 gonzalo@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=52521
--- shadow/52521 2004-01-03 11:07:00.000000000 -0500
+++ shadow/52521.tmp.15371 2004-01-03 11:07:00.000000000 -0500
@@ -0,0 +1,43 @@
+Bug#: 52521
+Product: Mono/Class Libraries
+Version: unspecified
+OS: unknown
+OS Details:
+Status: RESOLVED
+Resolution: FIXED
+Severity: Unknown
+Priority: Normal
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: liyul@hotmail.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: aspx file locked after invocation
+
+Symptom:
+
+aspx file will be locked (in use) after invocation with xsp. subsequent
+change will fail.
+
+Fix: Not sure whether more caution has to be used, but add reader.Close()
+in InitParser method in AspGenerator.cs fixed it.
+
+ void InitParser (string filename)
+ {
+ StreamReader reader = new StreamReader (filename, WebEncoding.FileEncoding);
+ AspParser parser = new AspParser (filename, reader);
++ reader.Close();
+ parser.Error += new ParseErrorHandler (ParseError);
+ parser.TagParsed += new TagParsedHandler (TagParsed);
+ parser.TextParsed += new TextParsedHandler (TextParsed);
+ if (!pstack.Push (parser))
+ throw new ParseException (Location, "Infinite recursion detected
+including file: " + filename);
+ tparser.AddDependency (filename);
+ }
+
+------- Additional Comments From gonzalo@ximian.com 2004-01-03 11:07 -------
+Patch applied.
+Thanks!