Issues related to ASP.NET configuration builders toolset, capable of configuring app.config/web.config during runtime from various backing sources (environment variables, files, Azure KeyVault, etc). Overview: https://learn.microsoft.com/en-us/aspnet/config-builder Base repository: https://github.com/aspnet/MicrosoftConfigurationBuilders
Questions tagged [asp-net-config-builders]
17 questions
16
votes
4 answers
User Secrets in .NET 4.7 connectionstrings format
I have been digging for hours and keep coming up with information about .NET Core, yet hardly anything about .NET 4.7 full framework. I figured out how to add User Secrets to the main project of my Web API solution. I get the basic secrets.xml file…

Connie DeCinko
- 802
- 2
- 15
- 32
15
votes
5 answers
JSON Configuration in full .NET Framework Console App
I have a Console App targeting .NET 4.7.1. I'm trying to use .net core like configuration in my .Net Framework app. My `App.config is:

kovac
- 4,945
- 9
- 47
- 90
6
votes
2 answers
Blocking web.config inheritance in a sub-application
We have a legacy .NET solution which has a combination of MVC and WebForms stuff, and some Web API projects as applications under the website root. Obviously these Web API applications will inherit the website's web.config settings.
We also have…

awj
- 7,482
- 10
- 66
- 120
4
votes
0 answers
Using configBuilders with system.webServer rewrite section
I use the IIS Url Rewrite module, which is configured under system.webServer/rewrite.
I'm trying to use a basic Microsoft.Configuration.ConfigurationBuilders.EnvironmentConfigBuilder configBuilder with mode="Expand" so I can inject an environment…

theyetiman
- 8,514
- 2
- 32
- 41
3
votes
2 answers
Configuration Builders - Unable to load assembly - .Net Framework
I am using file based User Secrets within my .Net Framework WebAPI and all is working fine with the AppSettings section of the web.config as per below

Chris Hammond
- 2,064
- 5
- 27
- 53
2
votes
1 answer
How to use ASP.NET 4.8 ConfigBuilders with system.serviceModel section of web.config
I have an ASP.NET 4.8 app that I am trying to integrate configuration builders into. I have installed the NuGet package Microsoft.Configuration.ConfigurationBuilders.Environment and added the required sections to Web.config (heavily truncated…

Paul Hunt
- 3,395
- 2
- 24
- 39
2
votes
1 answer
No providerName Found When Using Configuration Builder
web.config

8protons
- 3,591
- 5
- 32
- 67
2
votes
0 answers
After updating ConfigurationBuilders.Azure to 2.0 Visual Studio do not connect to KeyVault
I have added to project (WebApi .net 4.7) KeyVault as connected service. So far so good, it just have hardcoded KeyVault name in web.config. Then, I have added
Microsoft.Configuration.ConfigurationBuilders.Environment
to project, to read…

Piotr M
- 499
- 3
- 9
- 27
1
vote
1 answer
How to determine if an asp.net app is running on an azure vm
We have an asp.net app that gets deployed to both On-Prem and on Azure VMs. We are trying to figure out how to configure the app so that when deployed on an Azure VM it will use Azure App Configuration Service, but when deployed On-Prem it will…

cResults
- 733
- 1
- 5
- 17
1
vote
1 answer
Azure Functions Configuration Key Vault Provider not working
I want to use the Azure Key Vault Provider to populate my app's configuration. Using Microsoft.Azure.Functions.Extensions 1.1.0 in conjunction with Azure.Extensions.AspNetCore.Configuration.Secrets my code looks as follows:
local.settings.json
{
…

baouss
- 1,312
- 1
- 22
- 52
1
vote
1 answer
Config Builder Not Finding Environment Variable
When I view the connection string while debugging, the value is "abc"; not what I've set the Windows environment variable to.
web.config

8protons
- 3,591
- 5
- 32
- 67
1
vote
1 answer
IIS - Error: Unrecognized Attribute "configBuilders"
I've been trying to get an ASP.NET API setup, but I keep getting this error on the IIS Server when trying to check the Connection Strings. The project is a straight up new ASP.NET API Project with only 2 added variables to the registration…

K0D3R
- 128
- 2
- 10
1
vote
0 answers
How can I use powershell to get a website's connection strings if the config is using configbuilders?
I use powershell to inventory information about our internal websites. One of the items I track is what databases the site uses. Previously, I have used PowerShell like this to get the connectionstrings:
$allConnectionStrings = (Get-Webconfiguration…

Daniel Govier
- 61
- 6
1
vote
1 answer
An unhandled exception of type 'System.Configuration.ConfigurationErrorsException' occurred in System.Configuration.dll
I was trying to create user secrets in application console in c# in last days but I wasn't able to generate the file secret .
I ended up followed this tutoriel and finally was able to create secret.xml . But when I tried to read data from the…

newbie
- 63
- 1
- 8
1
vote
1 answer
.Net framework 4.8 User Secret - Accessing ConnectionString in Membership Provider
I am trying to use UserSecret in Asp.net MVC with a .Net framework 4.8. I am having issues with accessing ConnectionString via UserSecret the reason is I am also using Membership provider and Entityframework edmx file. The following code I am using…

Haseeb Khan
- 930
- 3
- 19
- 41