how to fix this Error System.TypeLoadException: Could not load type 'System.Configuration.ConfigurationElement' from assembly 'System.Configuration.ConfigurationManager, Version=7.0.0.0, Culture=neutral,

sanjay kumar 0 Reputation points
2023-06-18T01:16:13.9066667+00:00

I did not use this System.Configuration.ConfigurationManager package. Solution build successfully getting this Error run time only

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,815 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,597 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Karen Payne MVP 35,586 Reputation points Volunteer Moderator
    2023-06-20T08:46:59.7133333+00:00

    You need to install System.Configuration.ConfigurationManager even if not using it as per the following known issue.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.