DEV Community

Tống Bảo Lộc
Tống Bảo Lộc

Posted on

Answer: Access Web.config settings in Asp.Net Core App?

I kinda found the solution. The key to figuring it out was realizing that the AppDomain.CurrentDomain.SetupInformation.ConfigurationFile property wasn't pointing to the web.config file but rather to the exe.config file for the executable running the website. Remember, under .net core, the website runs in its own process and it has its…

Top comments (0)