question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FileNotFoundException trying to load assembly System.Configuration.ConfigurationManager

See original GitHub issue

First 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:closed
  • Created 4 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
Sappharadcommented, Dec 26, 2019

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.

0reactions
stijnherremancommented, Mar 3, 2020

@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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found