[asp.net] Ignore directories that don't exist instead of throwing.
[mono.git] / mcs / class / System.Web / System.Web.Util / WebEncoding.cs
index cfc6a689d3804d336113341a2ca5ff3c9591b6b4..09a190a97b2652735bdb73a91d36b25bf7f2abe5 100644 (file)
@@ -43,7 +43,7 @@ namespace System.Web.Util
                        get {
                                if (!cached) {
                                        try {
-                                               sect = (GlobalizationSection) WebConfigurationManager.GetSection ("system.web/globalization");
+                                               sect = (GlobalizationSection) WebConfigurationManager.GetWebApplicationSection ("system.web/globalization");
                                        }
                                        catch { }
                                        cached = true;