diff --git a/dotnet/src/dotnetframework/GxClasses/Core/gxconfig.cs b/dotnet/src/dotnetframework/GxClasses/Core/gxconfig.cs index e0140e252..cb3ea51f4 100644 --- a/dotnet/src/dotnetframework/GxClasses/Core/gxconfig.cs +++ b/dotnet/src/dotnetframework/GxClasses/Core/gxconfig.cs @@ -11,6 +11,7 @@ namespace GeneXus.Configuration using System.Web; using System.Configuration; using System.Collections.Generic; + using System.Linq; #endif using System.Collections; using System.Collections.Specialized; @@ -583,7 +584,7 @@ static NameValueCollection config logConfig(null, out configuredFilename); loadedConfigFile = Path.Combine(GxContext.StaticPhysicalPath(), "web.config"); _config = ConfigurationSettings.AppSettings; - foreach (string key in _config.Keys) + foreach (string key in _config.AllKeys.ToArray()) { string value = MappedValue(key, _config[key]); if (value != _config[key])