From: Marek Safar Date: Wed, 13 May 2015 15:27:08 +0000 (+0200) Subject: Add broken mono configuration hack X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=a9659d19f015191418f7937122b71c1b241870ed;p=mono.git Add broken mono configuration hack --- diff --git a/mcs/class/referencesource/System.Web.Services/System/Web/Services/Configuration/WsdlHelpGeneratorElement.cs b/mcs/class/referencesource/System.Web.Services/System/Web/Services/Configuration/WsdlHelpGeneratorElement.cs index 3ee89d0a741..c1e6007dfea 100644 --- a/mcs/class/referencesource/System.Web.Services/System/Web/Services/Configuration/WsdlHelpGeneratorElement.cs +++ b/mcs/class/referencesource/System.Web.Services/System/Web/Services/Configuration/WsdlHelpGeneratorElement.cs @@ -71,6 +71,13 @@ namespace System.Web.Services.Configuration // Update paths // If we're not running in the context of a web application then skip this setting. +#if MONO_BROKEN_CONFIGURATION_DLL + try { + var hack = this.EvaluationContext; + } catch (ConfigurationErrorsException) { + return; + } +#endif ContextInformation context = this.EvaluationContext; WebContext webContext = context.HostingContext as WebContext; if (webContext == null) @@ -115,6 +122,14 @@ namespace System.Web.Services.Configuration PartialTrustHelpers.FailIfInPartialTrustOutsideAspNet(); WsdlHelpGeneratorElement parent = (WsdlHelpGeneratorElement)parentElement; +#if MONO_BROKEN_CONFIGURATION_DLL + try { + var hack = this.EvaluationContext; + } catch (ConfigurationErrorsException) { + base.Reset(parentElement); + return; + } +#endif ContextInformation context = this.EvaluationContext; WebContext webContext = context.HostingContext as WebContext; if (webContext != null)