FileNotFoundException trying to load assembly System.Configuration.ConfigurationManager
See original GitHub issueFirst time I tried, I got:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
File name: 'System.Configuration.ConfigurationManager, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at Microsoft.Build.Evaluation.ToolsetConfigurationReader..ctor(PropertyDictionary`1 environmentProperties, PropertyDictionary`1 globalProperties)
at Microsoft.Build.Evaluation.ToolsetReader.ReadAllToolsets(Dictionary`2 toolsets, ToolsetRegistryReader registryReader, ToolsetConfigurationReader configurationReader, PropertyDictionary`1 environmentProperties, PropertyDictionary`1 globalProperties, ToolsetDefinitionLocations locations)
at Microsoft.Build.Evaluation.ProjectCollection.InitializeToolsetCollection(ToolsetRegistryReader registryReader, ToolsetConfigurationReader configReader)
at Microsoft.Build.Evaluation.ProjectCollection..ctor(IDictionary`2 globalProperties, IEnumerable`1 loggers, IEnumerable`1 remoteLoggers, ToolsetDefinitionLocations toolsetDefinitionLocations, Int32 maxNodeCount, Boolean onlyLogCriticalEvents, Boolean loadProjectsReadOnly)
at MSBuild.Abstractions.MSBuildWorkspace..ctor(ImmutableArray`1 paths, Boolean noBackup) in /_/src/MSBuild.Abstractions/MSBuildWorkspace.cs:line 23
at MSBuild.Abstractions.MSBuildWorkspaceLoader.LoadWorkspace(String path, Boolean noBackup) in /_/src/MSBuild.Abstractions/MSBuildWorkspaceLoader.cs:line 45
at MSBuild.Conversion.Program.Run(String project, String workspace, String msbuildPath, Boolean diffOnly, Boolean noBackup) in /_/src/try-convert/Program.cs:line 73
What am I missing here?
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Could not load file or assembly 'System.Configuration. ...
FileNotFoundException : Could not load file or assembly 'System.Configuration.ConfigurationManager, · Try this : Go to project properties and ...
Read more >Could not load file or assembly 'System.Configuration. ...
I fixed the problem I had. I was using the libraries that used System.Configuration.ConfigurationManager in another solution. When I used NuGet ...
Read more >Could not load file or assembly 'System.Configuration. ...
I've downloaded dotnet_connector_30_tutorial and loaded the files into Visual Studio Community 2022. ... Any clues on what I'm missing or did ...
Read more >Could not load file or assembly 'System.Configuration. ...
I am upgrading my development site from 4.0 to 4.1. I use the no source version. First, when I tried to load my...
Read more >[Solved]-Could not load file or assembly 'System.Configuration ...
Under the Browse, fill in "System.Configuration.ConfigurationManager". Choose the one from Microsoft and see what the tab on the right says. Install if not ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Don’t start try-convert from the Visual Studio 2019 developer command prompt. If you start it from the VS developer command prompt you get this error.
If you run it from a normal powershell instance or the regular command prompt it works fine.
Source: I just got the same error and this was how I fixed it.
@jmarolf I’ve attached try-convert.txt. The project converts fine using a regular cmd, but fails when using the Developer Command Prompt and Developer PowerShell (opened through Visual Studio).