tag:blogger.com,1999:blog-20032820.post9212237382071470913..comments2024-03-25T20:37:11.000+13:00Comments on Manni on DotNet: "Configuration system failed to initialize"Manfred Langehttp://www.blogger.com/profile/01100831606055102208noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-20032820.post-37232982556897772662010-03-30T21:56:30.693+13:002010-03-30T21:56:30.693+13:00I had the same issue when trying to reduce a webse...I had the same issue when trying to reduce a webservice based application back to dotnet 2.0 in VisualStudio2008. <br /><br />The solution did execute on my developer machine (3.5 installed) but did fail with <br /><br />Configuration system failed to initialize<br /> at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey<br />)<br /> at System.Configuration.ClientConfigurationSystem.PrepareClientConfigSystem(S<br />tring sectionName)<br /> at System.Configuration.ClientConfigurationSystem.System.Configuration.Intern<br />al.IInternalConfigSystem.GetSection(String sectionName)<br /> at System.Configuration.ConfigurationManager.GetSection(String sectionName)<br /> at System.Configuration.PrivilegedConfigurationManager.GetSection(String sect<br />ionName)<br /> at System.Diagnostics.DiagnosticsConfiguration.Initialize()<br /> at System.Diagnostics.DiagnosticsConfiguration.get_Sources()<br /> at System.Diagnostics.TraceSource.Initialize()<br /> at System.Diagnostics.TraceSource.get_Switch()<br /> at System.Web.Services.Diagnostics.Tracing.InitializeLogging()<br /> at System.Web.Services.Diagnostics.Tracing.get_On()<br /> at System.Web.Services.Protocols.SoapClientType..ctor(Type type)<br /> at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor()<br /> at setInstanceAttribute.pids.PenInfoDeskServiceService..ctor()<br /> at setInstanceAttribute.Program.Main(String[] args)<br /><br /><br />when executed in the target platform (no 3.5 installed). <br /><br />After uncommenting the "system.serviceModel" section in the .config file, the application started and works.<br /><br />Hope this helps someone, took me 8 hrs to figure this out :-(Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-20032820.post-12771738814181521952010-01-07T18:42:50.899+13:002010-01-07T18:42:50.899+13:00I got this problem after mistakenly creating a new...I got this problem after mistakenly creating a new settings file instead of using the default settings file found in the properties folder. After realizing my redundancy, I deleted the settings1 file, and everything seemed fine. But after a few compilations, I got the configuration system failed to initialize error. Upon analysis of my app.config file, I found a reference to the deleted settings1 class. I don't know why it worked for awhile before giving me this error, but it sure drove me nuts. I removed the line referring to settings1, and everything is all better.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-20032820.post-65046762383568246672009-10-09T04:22:31.393+13:002009-10-09T04:22:31.393+13:00Config files drive me nuts sometimes. Visual Stud...Config files drive me nuts sometimes. Visual Studio jumps all over me with every other kind of warning or error, but, heaven forbid you set a value to true instead of True and expect something like a compiler or intelicenseto validate this code you just wrote before 'compiling' an application. Config files seem like a cop-out in this regard. It would make since that the values aren't validated once the program is compiled, but this error...<br />Now I get to search the web for all the locations of all config files that could affect my app and review the syntax of each element and attribute in-hopes of finding some typo somewhere.Anonymousnoreply@blogger.com