Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

My Blazor Web App isn't reading any custom settings from appsettings.json

$
0
0

I placed a bunch of items in the "appsettings.json" file in my project. Both at startup in Program.cs, and on any Razor component page where I inject IConfiguration, they all come back with null whenever I try to read any of the values I added to that file. Any default values it will access, but any custom values (new or changed) it will not.

Why isn't IConfiguration reading from the appsettings or appsettings.Development files?


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>