Browse Source

2008-02-04 Marek Habersack <[email protected]>

	* AspGenerator.cs: set isApplication before parsing. Fixes bug
	#357036.

svn path=/trunk/mcs/; revision=94770
Marek Habersack 18 years ago
parent
commit
23c678a075

+ 1 - 1
mcs/class/System.Web/System.Web.Compilation/AspGenerator.cs

@@ -259,6 +259,7 @@ namespace System.Web.Compilation
 
 		public void Parse (string file)
 		{
+			isApplication = tparser.DefaultDirectiveName == "application";
 #if ONLY_1_1
 			InitParser (file);
 #endif
@@ -333,7 +334,6 @@ namespace System.Web.Compilation
 				return type;
 			}
 
-			isApplication = tparser.DefaultDirectiveName == "application";
 			Parse ();
 
 			BaseCompiler compiler = GetCompilerFromType ();

+ 5 - 0
mcs/class/System.Web/System.Web.Compilation/ChangeLog

@@ -1,3 +1,8 @@
+2008-02-04  Marek Habersack  <[email protected]>
+
+	* AspGenerator.cs: set isApplication before parsing. Fixes bug
+	#357036.
+
 2008-01-31  Jb Evain  <[email protected]>
 
 	* AspGenerator.cs: correct typo. Fix #357547.