ConfigurationManager could not be found

59 views Asked by At

I have a website based on react for frontend and .net MVC for the backend

I want to get the AppSettings methode in the ConfigurationManager, but VS tells me, that there is no ConfigurationManager type name in System.Configuration

I have a reference on System.Configuration. Everything in other questions i tried, but it won't work.

If I try to acces the AppSettings with the methode System.Web.Configuration.WebConfigurationManager.AppSettings it gives me an error that there is no type name or namespace for Configuration

Full error from VS

Can someone help me fix this?

1

There are 1 answers

0
Dreadhorn On BEST ANSWER

Oh wow...

With nuGet I had to search for system.configuration and then i could install System.Configuration.ConfigurationManager

Now, it works fine