ConfigurationManager cannot find value in web.config

I've been using Rider for a while now and have always been able to just open VS solutions and they work without configuration/just use whatever was configured in VS.

But now a large MVC application refuses to work.

ConfigurationManager.GetSection() returns the proper section when I run in VS2019, but returns null when run in Rider.

I have no idea where to even begin looking for a solution, since I know next to nothing about, I just need to run the project to test some changes in backend data processing  made. Can anyone point me in the right direction?

1 comment
Comment actions Permalink


Please check the value in AppDomain.CurrentDomain.SetupInformation.ConfigurationFile when you run the app in Rider and Visual Studio. Perhaps Rider is using another configuration file for some reason.


Please sign in to leave a comment.