Forum Discussion
J_JeffRoberts
May 04, 2024Copper Contributor
Can I access User Secrets from a _Framework_ Web API project?
I'm targeting .NET Framework 4.8, mainly because I sometimes have to interact with Access databases and I assume I have a better chance of that working for framework than .NET Core. When deployed...
J_JeffRoberts
May 06, 2024Copper Contributor
With this setup should the secrets in the secrets.xml file end up in ConfigurationManager.AppSettings[]?
For me they do not, I only see the 4 settings in my Web.config/configuration/appSettings element.
For me they do not, I only see the 4 settings in my Web.config/configuration/appSettings element.
J_JeffRoberts
May 06, 2024Copper Contributor
This was answered elsewhere - I just needed to add this attribute to the appSettings element in my Web.config:
<appSettings configBuilders="Secrets">