UncleRonin
Well-known member
Hey folks, I've tried searching for solutions to this on the web and either I'm the only one experiencing this or the search criteria are too broad based on the details involved :|
I have an application running which makes use of Entity Framework 6 and basic threading. It's quite typical. The connection string is stored under <connsectionStrings> in the app.config and I have a few custom app settings in <appSettings>. Nothing fancy. I never write to the config and only read from it - it never undergoes any changes while the app is running at any point in time, ever.
Now, whether as a Debug or Release level compilation, the application runs perfectly fine without any hassles. The problem is I've noticed that every now and again, randomly, threads will raise exceptions and log the following message:
(HRESULT:0x80131902). System.Configuration.ConfigurationErrorsException: The configuration section 'appSettings' has an unexpected declaration.
This confuses the daylights outta me since it runs well otherwise, the config never changes, etc. A sample stack trace is below.
Has anyone ever experienced something like this? I tend to think something is locking the app.config or else I haven't the faintest idea 
I have an application running which makes use of Entity Framework 6 and basic threading. It's quite typical. The connection string is stored under <connsectionStrings> in the app.config and I have a few custom app settings in <appSettings>. Nothing fancy. I never write to the config and only read from it - it never undergoes any changes while the app is running at any point in time, ever.
VB.NET:
<appSettings>
<add key="Localisation:Culture" value="en" />
<add key="Node:SystemKey" value="380549f2-b969-429d-907e-dbf54d185906" />
</appSettings>
(HRESULT:0x80131902). System.Configuration.ConfigurationErrorsException: The configuration section 'appSettings' has an unexpected declaration.
This confuses the daylights outta me since it runs well otherwise, the config never changes, etc. A sample stack trace is below.
VB.NET:
at System.Configuration.ConfigurationManager.get_AppSettings()
at System.Data.Entity.Core.Objects.ObjectContext..ctor(EntityConnection connection, Boolean isConnectionConstructor, ObjectQueryExecutionPlanFactory objectQueryExecutionPlanFactory, Translator translator, ColumnMapFactory columnMapFactory)
at System.Data.Entity.Internal.InternalConnection.CreateObjectContextFromConnectionModel()
at System.Data.Entity.Internal.LazyInternalConnection.CreateObjectContextFromConnectionModel()
at System.Data.Entity.Internal.LazyInternalContext.InitializeContext()
at System.Data.Entity.Internal.InternalContext.ForceOSpaceLoadingForKnownEntityTypes()
at System.Data.Entity.DbContext.System.Data.Entity.Infrastructure.IObjectContextAdapter.get_ObjectContext()