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
Can someone help me fix this?
Oh wow...
With nuGet I had to search for system.configuration
and then i could install System.Configuration.ConfigurationManager
Now, it works fine
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.