Forum Discussion
Error loading .Net application configuration after installing Windows 25th April KB5012643
After installing KB5012643 (25th April Update) in a couple of Windows 11 PCs, we can't execute an application developed by our company. The application is Windows Forms Desktop .Net 3.5.
As soon as we uninstall that package, the application runs without error.
The error trace shows a problem loading the application configuration file, more specifically, it can't recognize "system.serviceModel":
Exception type: System.Configuration.ConfigurationErrorsException
Message: Error en la inicialización del sistema de configuración
Source: System.Configuration
StackTrace:
en System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
en System.Configuration.ClientConfigurationSystem.PrepareClientConfigSystem(String sectionName)
en System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
en System.Configuration.ConfigurationManager.GetSection(String sectionName)
en System.Configuration.ConfigurationManager.get_ConnectionStrings()
en System.Data.EntityClient.EntityConnection.ChangeConnectionString(String newConnectionString)
en System.Data.Objects.ObjectContext..ctor(String connectionString, String defaultContainerName)
en AutoUpdate.Servidor.Data.EntityFrameWork.AutoUpdatev11Entities..ctor()
en AutoUpdate.Servidor.Core.SeguridadGW..ctor()
en AutoUpdate.Servidor.AppCliente.Program.Main()
Inner Exception type: System.Configuration.ConfigurationErrorsException
Message: Sección de configuración no reconocida system.serviceModel. (C:\Program Files (x86)\Consoft\Consoft Gestor AutoUpdate\Gestor AutoUpdate.exe.Config line 113)
Source: System.Configuration
StackTrace:
en System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
en System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
en System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
Any idea? Somebody with similar problems??
Thank you very much.
Jose
- I finally restored GAC_MSIL unexpected files uninstalling .Net Framework 3.5 and reinstalling it from Control Panel -> Programs & features -> Add/remove Windows features
After reinstalling .Net Framework 3.5 the application is now working.
- Martin_WorzfeldCopper Contributor
We have the same problem. Is there a solution or workaround to solve this issue?
- joseparraBrass ContributorI have compared the machine.config file (C:\Windows\Microsoft.NET\Framework64\v2.0.50727\CONFIG) before KB5012643 and after, and I can see that following sectiongroups have disappeared:
<sectionGroup name="system.runtime.serialization" ...
<sectionGroup name="system.serviceModel" ...
<sectionGroup name="system.serviceModel.activation" ...
I have copied that sections from the backup machine.config file and now it appears another error message when I try to execute my application:
"Could not load file or assembly System.Runtime.Serialization version=3.0.0.0 ... publickeytoken=b77a5c561934e089"
I opened GAC_MSIL folder and I can see that following folders are empty:
C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089
C:\Windows\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089
Any idea of how to restore that folders?
Jose- joseparraBrass ContributorI finally restored GAC_MSIL unexpected files uninstalling .Net Framework 3.5 and reinstalling it from Control Panel -> Programs & features -> Add/remove Windows features
After reinstalling .Net Framework 3.5 the application is now working.