Engine Source Version Setup.bat(GitDependencies.exe)Failed to read '...\Engine\Build\Commit.gitdeps.xml': System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize

zyzy2922
Sat, 26 Jul 2025 21:35:20 +0000
Platform & Builds

I used to be able to download the engine source file normally through Setup.bat and finally compile it in VS, but later I uninstalled VS2019 (only VS2022 remained) and modified some NET framework,then I can no longer successfully execute Setup.bat.No new content has been submitted in the branch of the version I compiled successfully before,this may mean that there is no problem with the engine file cloned from GitHub,I tried different versions of the engine and the same error occurred.I tried to clean up the relevant files of the NET framework, uninstall and reinstall the NET framework, but still failed to solve the problem. Now Microsoft no longer provides VS2019 installation. I can’t confirm whether this is relevant.
reports the following error when running the source version of Setup.bat(GitDependencies.exe):
Failed to read ‘…\Engine\Build\Commit.gitdeps.xml’: System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize —> System.Configuration.ConfigurationErrorsException: Unrecognized configuration section startup. (…\Engine\Binaries\DotNET\GitDependencies.exe.Config line 3)
at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
— End of inner exception stack trace —
at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
at System.Configuration.ClientConfigurationSystem.PrepareClientConfigSystem(String sectionName)
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
at System.Configuration.ConfigurationManager.GetSection(String sectionName)
at System.Configuration.PrivilegedConfigurationManager.GetSection(String sectionName)
at System.Diagnostics.DiagnosticsConfiguration.GetConfigSection()
at System.Diagnostics.DiagnosticsConfiguration.Initialize()
at System.Diagnostics.DiagnosticsConfiguration.get_SwitchSettings()
at System.Diagnostics.Switch.InitializeConfigSettings()
at System.Diagnostics.Switch.InitializeWithStatus()
at System.Diagnostics.Switch.get_SwitchSetting()
at System.Xml.Serialization.TempAssembly.LoadGeneratedAssembly(Type type, String defaultNamespace, XmlSerializerImplementation& contract)
at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
at System.Xml.Serialization.XmlSerializer..ctor(Type type)
at GitDependencies.Program.ReadXmlObject[T](String FileName, T& NewObject)
Has anyone ever encountered a similar situation or had a solution?

1 post - 1 participant