* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / System.Web / System.Web.Configuration / PagesConfiguration.cs
index 69396021d96cf5a9ee9e6b89eeb75f33fc34a730..b1df6ca9b196f9bf8be4013cf216285d76f37635 100644 (file)
@@ -66,12 +66,12 @@ namespace System.Web.Configuration
                {
                        PagesConfiguration config;
                        if (context == null)
-                               context = HttpContext.Context;
+                               context = HttpContext.Current;
 
                        try {
                                config = context.GetConfig ("system.web/pages") as PagesConfiguration;
                        } catch {
-                               return null;
+                               return new PagesConfiguration (null);
                        }
                        return config;
                }