2009-02-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
[mono.git] / mcs / class / System.Web / System.Web.Compilation / AppResourcesAssemblyBuilder.cs
index 20d50a1767ad0f69b0665009200960fb6b7c5785..f302cc9fa7881c9fc1e2582765622193d2d7480b 100644 (file)
@@ -74,7 +74,7 @@ namespace System.Web.Compilation
                        this.baseAssemblyDirectory = Path.GetDirectoryName (baseAssemblyPath);
                        this.canonicAssemblyName = canonicAssemblyName;
                        
-                       config = WebConfigurationManager.GetSection ("system.web/compilation") as CompilationSection;
+                       config = WebConfigurationManager.GetWebApplicationSection ("system.web/compilation") as CompilationSection;
                        if (config == null || !CodeDomProvider.IsDefinedLanguage (config.DefaultLanguage))
                                throw new ApplicationException ("Could not get the default compiler.");
                        ci = CodeDomProvider.GetCompilerInfo (config.DefaultLanguage);