projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
1.1 test fixes
[mono.git]
/
mcs
/
class
/
System.Web
/
System.Web.Compilation
/
AspGenerator.cs
diff --git
a/mcs/class/System.Web/System.Web.Compilation/AspGenerator.cs
b/mcs/class/System.Web/System.Web.Compilation/AspGenerator.cs
index d424109d37e5327355b68c06140370ab399e14a0..b29dc60746dbec632a3b9168989e657e97f1646b 100644
(file)
--- a/
mcs/class/System.Web/System.Web.Compilation/AspGenerator.cs
+++ b/
mcs/class/System.Web/System.Web.Compilation/AspGenerator.cs
@@
-749,8
+749,15
@@
namespace System.Web.Compilation
return type;
}
+#if NET_2_0
Parse ();
-
+#else
+ try {
+ Parse ();
+ } catch (ParseException ex) {
+ throw new HttpException ("Compilation failed.", ex);
+ }
+#endif
BaseCompiler compiler = GetCompilerFromType ();
type = compiler.GetCompiledType ();