.NET (C#) "Could not load file or assembly" to version 9 when all my projects are referencing version 7

49 views Asked by At

My main UI project uses two other dependencies loaded into the solution which call System.Configuration.ConfigurationManager versions 7.0.0, yet every time I compile I get the error "Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=9.0.0.0". I previously had updated that NuGet package to 9 but rolled it back thinking that it was causing conflicts with other code. Now I'm not able to use with 7 either...

I've tried the ChatGPT solutions: Check Project References, Check App.Config or Web.Config, and Check for Other Assembly References. But could not find any projects which reference 9 or App.config files referencing 9 explicitly.

In my App.Config file I have these configSections, would that potentially create a version conflict?

<configSections>
    <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
        <section name="ATSMainUI.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
    </sectionGroup>
</configSections>
0

There are 0 answers