Top "Appsettings" questions

Save File to MyDocuments + App Folder

I am trying to save my .NET application settings file to the user's %MyDocument%\MyApplication folder, but I don't know …

c# file append savefiledialog appsettings
Using connection string from appsettings.json to startup.cs

Currently in Startup, I have my sql server string looking like this: public void ConfigureServices(IServiceCollection services) { var connection = @"Server=…

c# asp.net-core asp.net-core-1.0 appsettings
Reading integers from AppSettings over and over

Some I do quite a lot of is read integers from AppSettings. What's the best way to do this? Rather …

web-config appsettings
wpf - Get values from App Config file

How to get values from App.Config. Code: <configuration> <appSettings> <add key="ShowRoomCode" value="1000"/> &…

wpf appsettings configurationmanager
Form submit resulting in "InvalidDataException: Form value count limit 1024 exceeded."

I have created an mvc site and I'm posting a large amount of json form data (Content-Type:application/x-www-form-urlencoded) back …

.net asp.net-mvc asp.net-core-3.1 asp.net-core-1.0 appsettings
Multiple AppSettings files, is it possible?

I want to create 3 AppSettings config files: Database.config Messages.config Global.config And after add in my App.config: &…

c# .net configuration appsettings
Reading dll.config (not app.config!) from a plugin module

I am writing a C# .NET 2.0 .dll that is a plug in to a Larger application. The visual studio project …

c# .net-2.0 settings appsettings
Can I set listen URLs in appsettings.json in ASP.net Core 2.0 Preview?

I'm creating an ASP.net Core 2.0 app to run on the .net Core 2.0 runtime, both currently in their Preview versions. …

asp.net-core .net-core appsettings kestrel-http-server
ConfigurationSettings.AppSettings is obsolete, warning

var values = new NameValueCollection { { "key", ConfigurationSettings.AppSettings["API-Key"].ToString() }, { "image", Convert.ToBase64String(File.ReadAllBytes(photo.ToString())) } }; What's the new …

c# configuration app-config appsettings
Access appsettings.json values in controller classes

Having trouble figuring out how to read appsettings.json values outside of the startup.cs. What I would like to …

c# asp.net-core-mvc appsettings