Click here to Skip to main content
15,881,248 members
Everything / Configuration

Configuration

Configuration

Great Reads

by V.
Second article on creating a reusable framework
by honey the codewitch
An INI reader that is easy to use, easy to port, relatively efficient, and to the point
by Graeme_Grant
Enabling development and production AppSettings support for non-ASP.NET Core apps
by Amogh Natu
This tip provides one solution to the exception "Configuration system failed to initialize" in C#

Latest Articles

by GabrieleTronchin
ASP.NET API with a Custom SQL Configuration Provider
by Federico Di Marco
Fededim.Extensions.Configuration.Protected is an improved ConfigurationBuilder which allows partial or full encryption of configuration values stored inside any possible ConfigurationSource and fully integrated in the ASP.NET Core architecture using Data Protection API.
by Minh Danh Nguyen (ToughDev)
Dual-system Bluetooth keyboard setup: Seamless pairing with Windows 11 and Ubuntu 22
by Minh Danh Nguyen (ToughDev)
Developing vintage 68K Macintosh apps with CodeLite IDE, Retro68 and pce-macplus emulator

All Articles

Sort by Score

Configuration 

1 Apr 2014 by V.
Second article on creating a reusable framework
13 Dec 2021 by honey the codewitch
An INI reader that is easy to use, easy to port, relatively efficient, and to the point
25 Feb 2023 by Graeme_Grant
Enabling development and production AppSettings support for non-ASP.NET Core apps
1 Mar 2014 by Amogh Natu
This tip provides one solution to the exception "Configuration system failed to initialize" in C#
29 Mar 2023 by V. Subhash
Use policies.json file to force Firefox to respect your preferences.
5 Nov 2020 by honey the codewitch
A walkthrough and source code for automatically configuring your ESP8266 IoT devices
18 Jul 2014 by Ryszard Dżegan
How to prepare log4net or other custom, XML-based configuration file for particular build or environment
28 Feb 2016 by Troy W. Locke
Setting up and using the new configuration system in ASP.NET 5 vNext
24 Oct 2016 by PatrickJNolan
Configuration.EntityFramework is a custom configuration provider for the .NET Core Configuration system built on EntityFrameworkCore.
7 Feb 2024 by Federico Di Marco
Fededim.Extensions.Configuration.Protected is an improved ConfigurationBuilder which allows partial or full encryption of configuration values stored inside any possible ConfigurationSource and fully integrated in the ASP.NET Core architecture using Data Protection API.
29 Mar 2024 by GabrieleTronchin
ASP.NET API with a Custom SQL Configuration Provider
8 Nov 2013 by Benjamin Kniffler
A simple and extensible configuration framework for .net4
18 May 2014 by Syed M Hussain
This article presents a simple CSS like configuration class.
6 Oct 2014 by Zoltán Zörgő
Assuming you want to check the built-in service status from code, you can call[^] w32tm (the service behind is W32Time) and parse the result. Please note, that some operations require elevated privileges.Third party NTP/SNTP clients might have their own API.So finally, if you only need...
11 Oct 2013 by ASP.NET Community
LoginStatus control is used to display Login /Logout links based on the login status of the current user.If the user logged in it displays Logout ,if
22 Apr 2021 by Nick Veld
Jupyter + HDFS + YARN + Spark and only one open port using NGINX
21 Jan 2022 by Dave Kreskowiak
A major problem with the Registry is portability. The Registry is specific to Windows only. That means you cannot use it if you port your code over to other platforms, like phones. If all you're doing is storing a small list of settings, speed...
11 Oct 2013 by ASP.NET Community
Web.Config           
24 Apr 2015 by Vasil Trifonov
ConfigurationTransformations Nuget
13 Jul 2016 by Suvendu Shekhar Giri
You need to encode the URL prior to redirect.The error is showing because it considers the "&" as query string separator and thus treats "file" as another query string variable.The UTF-8 equivalent of "&" is "%26" and that of "=" is "%3D".Check following tutorial for detailed...
28 Jan 2020 by Richard Deeming
By default, ASP.NET will issue a 302 redirect to the error handler. You can change that by setting the redirectMode to ResponseRewrite:
21 Feb 2022 by Illya Reznykov
Creating Regional Web ACL with CloudFormation
7 May 2023 by ToughDev
How to install Microsoft Web Deploy on Win7
23 Jan 2024 by Minh Danh Nguyen (ToughDev)
Dual-system Bluetooth keyboard setup: Seamless pairing with Windows 11 and Ubuntu 22
11 Oct 2013 by ASP.NET Community
So many aspects of ASP.NET are configurable it can be overwhelming. Things really get interesting when you start adding configuration options for
11 Oct 2013 by ASP.NET Community
Every element in the configuration file maps to a class in the .NET framework.  It's possible to expand upon this to create custom configuration
11 Oct 2013 by ASP.NET Community
How to edit Configuration file Web.Configin web.config we use section to add keys as you see     
18 Nov 2013 by sathish4303
I had developed web application in asp.net and i want to host my application as "https://". Help me...Thanks in advance...!
18 Nov 2013 by ZurdoDev
You just need to get an SSL Certificate and then configure IIS to use it. There are many samples online. If this is public facing you'll want to buy one or if it is internal only you can use Windows Server to generate a private one for you.
3 Dec 2013 by HostForLIFE.eu - Europe ASP.NET Hosting
Hi Sathish,To use https, you need to purchase SSL and also static IP. Then, you can configure it via IIS.
6 Oct 2014 by Eduard Keilholz
Hey guys,I want to know it there's a way to check whether Windows is configured to synchronize with a time server or not.I've tried to check a timeserver and match the current machine time, but this doesn't do the trick, so just receiving the time server setting from windows would be...
21 Dec 2015 by Member 10711621
I am implementing outbound rule rewriting for image but its not working. any one can tell me what is problem to execute this.Web.Config
3 Jan 2016 by Marco Bertschi
I have an application where I'm tinkering with Code First Entity Framework.So far I do have my Data Context (called ServerContext) up and working nicely. I tried to use an initalizer (ServerContextInitalization) which looks like this:using Dl.ProgramCenter.Common.Dataobjects;using...
31 Jan 2016 by Da-broken-Breakpoint
Brief description: We have a few C++ dlls which are targeting 32 bit and 64 bit platforms separately. I want to build my project with the corresponding target platform with the appropriate DLLs being fetched from different source folders. I will make a setup package based on this. I would like...
29 Mar 2016 by Sander Rossel
Hi all,So here's the deal, I'm trying to set up a WCF service which needs support for SOAP 1.2 and Basic Authentication (username + password, which must be validated against a custom database). The service will be consumed by a third party over the internet.I'm using Visual Studio 2015 with...
29 Mar 2016 by Sander Rossel
Alright, so I found my biggest problem. It's rather stupid.I was missing the services configuration... I remember that used to be generated in earlier versions of WCF.Anyway, with that in place I was able to fix it.Having Basic Authentication without HTTPS is impossible,...
17 Jul 2017 by wardakhan
I was trying to execute a simple program in IntelliJ IDEA as a static web project. I'm a newbie and I'm learning web development with Node.js. I took help from the official website of IntelliJ IDEA, but the error was same. Though, I configured the settings and Project structure...
13 Jul 2016 by madhav_jain
Use "amp;" after &
5 Aug 2016 by GauravSatpute
Below is my Sample Connection string:Inside which i want to update Initial Catalog=; to Initial Catalog=SomeDBName; all this during...
12 Sep 2016 by Arun-23
How to change MySQL session variable (i.e, SQL_mode, max_allowed_packet etc) for different user accounts. i have two users sam@localhost and joe@localhost i need to set different MySQL session variable values for both the users (OR) Is there any way to auto call a procedure or sql once the user...
12 Sep 2016 by dataentry1
So basically my dll file is reading a configuration.ini file and i'm attempting to write a function to allow me to place a bool & Integer/atoi on the same lines along with two different str char type/atoi on same lines.for example// virtual key value, virtual key value2title here =...
12 Sep 2016 by CPallini
In my opinion, using INI files such a way is cumbersome. Probably you need a file format more suitable for holding hierarchical structured data. You might have a look at Serialization - Wikipedia, the free encyclopedia[^].
12 Sep 2016 by Jochen Arndt
You must write a parser that splits each line into it's elements:The title, the assignment character, and a comma separated list of values.You can for example use strchr or string::find to locate the assignment character and get the title and the parameters.Then extract multiple...
16 Mar 2017 by Dave the Golfer
I have created a project in VB.net using Visual Studio 2015. It all works well but needs to be improved to help users who are not computer literate and usually over 65 years old.I now need to modify the program. I want to implement some sort of configuration control and go to version control...
16 Mar 2017 by AnvilRanger
Here is a good link to get you started working with Team Services.Set up Team Services, Team Foundation Server, Visual Studio Team Services, or TFS[^]Here is a quick vid that might help you get started adding an existing solution to TFS.How to add a existing solution to TFS - YouTube[^]
22 Mar 2017 by bling
Here are three choices for you:Easiest fix is to get rid of the Conversion class and write specialized versions of getValueOfKey.Alternative 2: make Conversion a template class (instead of a class with template members).template class Conversion {Alternative 3: make...
16 May 2017 by Adam_adam
When I attempt to create a linked server to the oracle database from SQL Server Management Studio, I get the error: cannot create an instance of ole db provider "oraoledb.oracle" for linked server error 7303 What I have tried: EXEC master.dbo.sp_addlinkedserver @server =...
16 May 2017 by Maciej Los
Check this: sql server - "Cannot create an instance of OLE DB provider" error as Windows Authentication user - Stack Overflow[^]. It might be helpful to you.
17 Jul 2017 by jdferrell
The error you are receiving here means when you are trying to run the class, IntelliJ is not able to find it. To fix this, you need to add a .jar file to the classpath: java org.somepackage.SomeClass -cp myJarWithSomeClass.jar or if running on the command line you must add the dot operator:...
4 Apr 2018 by Member 13755707
Can somebody give me a code example in c# on how that I make my program generate a ini file after I exit it. What I have tried: I have tried nothing so far need some advice!
4 Apr 2018 by Mehdi Gholam
You create the ini (configuration file) while you are running, after you exit there is no code to run... See these : A Simple and Efficient INI File Reader in C#[^] GitHub - rickyah/ini-parser: Read/Write an INI file the easy way![^]
4 Apr 2018 by Patrice T
Quote: how that I make my program generate a ini file after I exit it. Short answer: you don't. Programs never do something after exit. Generally speaking, for any interactive program, the program is "do something" on event or user choice. In your case, rather than just "exit" on request, the...
8 Aug 2019 by Audiory Researcho
How can I create a minimal Visual Studio Code 2.2 workspace with: 1. C++ library project (if possible *.so - shared library, if not *.a to use with C#) 2. (If required) something instead of C++/CLI wrapper project(it is linux os no MS C++/CLI) may be wrapper on C# side? 3. C# Application...
8 Aug 2019 by Richard MacCutchan
See Platform Invoke (P/Invoke) | Microsoft Docs[^]
8 Oct 2019 by Member 14615490
Hi, I have created Solution Configurations as Development, QA and test using Configuration Manager. I need to connect to respective databases now like if Solution Configuration is Development then connect to Development Database, if QA then connect to QA database and if Test the connect to Test...
8 Oct 2019 by #realJSOP
Connecting to databases is handled in code, not the configuration manager. You need to write code to dynamically determine the environment it's running in, and create the appropriate connection string(s) at run time. There are several ways to identify (or specify) the environment, so I'll leave...
28 Jan 2020 by kingsa
Hi , I tried to redirect error pages to custom pages ,but in network tab in browser its showing as 302 instead 404 can please suggest how can i overcome this issue What I have tried:
11 Jun 2020 by Member 14631177
My web app is running after being deployed on Apache2 (local OS is Ubuntu 18.04 LTS). There is a plethora of controller-related urls like localhost://get_id/ or localhost://delete/. Whenever I enter them into search mask, page of my we...
11 Jun 2020 by Garth J Lancaster
This may help Mapping URLs to Filesystem Locations - Apache HTTP Server Version 2.5[^] What you have to realise is there must be 'protection' between the 'Web Layer' and the Local file system - imagine if on a Windows system a user could cause...
17 Aug 2020 by HHGM
Hi, I am building this application that relies on SQL Server. I have created the setup project for the application itself, and creating a bootstrap setup to install sql server is missing. Now I need to figure out what the instance name is to...
23 Nov 2020 by Richard Deeming
customEndpointSegment does not appear to be a standard configuration element - the only match in Google is this question. You have presumably written your own configuration section to handle this element. You will need to use that section to...
6 Jul 2021 by TimMackey
I have a node.js application deployed on Azure as "myClient" App Service, and several configuration files which contain values specific to their runtime environment: - appconfig.json for debugging on localhost (not applicable to Azure). -...
24 Jul 2021 by TomFuller
I have a solution with an executable project and several DLL projects. There are system-wide parameters (file names, locations, numeric constants) that should be visible to everyone. (I expect to maintain them in an XML file with XmlTextFile.) ...
24 Jul 2021 by OriginalGriff
One simple solution is to create a Locale project and have everything that needs to access it reference that. Make it a static class and off you go.
27 May 2022 by Phoenix Liveon
How do we implement some buildTypes and flavors configs for our project(library or an application). I had a hard time finding tutorials or references about it, especially if it is implemented in kotlin-dsl. I tried to simulate the concepts from...
21 Jan 2022 by Sascha Manns
I already googled it, but currently have not found an answer. I'm thinking about storing application settings. So I can use the .NET ConfigurationManager to use a user.config in %AppData%. One possible way is to store the information in a...
13 Apr 2022 by Phoenix Liveon
It seem there's a bug or maybe the local vscode application in my computer got corrupted? But the multi-module projects or subprojects features are working properly and I already configure the "gradle.nestedProjects" to TRUE, nonetheless I want...
24 Sep 2022 by Illya Reznykov
The post describes PowerShell script which creates WAF resources for the scenario when Application Load Balancer is used to serve content for a public website, but to block requests from attackers and to protect from OWASP Top 10 security risks.
7 May 2023 by ToughDev
How to fix PDF Export Issues while using a Scriptcase Grid app
31 Mar 2021 by Arctype SQL
Easily deploy PostgreSQL pod in Kubernetes
5 Nov 2023 by Richard Bryant 2022
I am using the License Plate module for CodeProjectAI and also using the "Plate Recognizer for ALPR" integration. In my alerts, I am getting the plates, example, "TAG1234; car:99%". I'm trying to figure out how I can cancel the alert on my...
29 Oct 2023 by Richard MacCutchan
Please post your question in the CodeProject.AI Discussions[^] forum.
5 Oct 2022 by Darzee The Great
So I'm building a template for a page(template-clock.php), but the original out-of-the-box classes of tailwind CSS just work fine but my custom ones are in the tailwind.config file: //THIS IS THE tailwind.config file code: /** @type...
9 Feb 2017 by dale.newman
An alternative to .NET Configuration Handler
18 Jan 2017 by DotNetSteve
Manage an overgrown appSettings section
28 Mar 2017 by DotNetCraft
This article describes one of the easiest ways to read configurations from the App.config.
6 May 2017 by Habibur Rony
This topic will cover the concept of the adapter pattern & how to implement logger using log4net. It will also cover what’s adapter pattern, why need, where & when to use; what’s Log4Net, implementation of logger using adapter pattern, how to implement and add custom SMTP appender & configuration.
21 Apr 2015 by Vasil Trifonov
Small Helper Tool for Configuration Transformations
11 Oct 2013 by ASP.NET Community
"IIS7 includes a comprehensive set of administration tools, including a brand new administration GUI, a new command line tool, and new managed code
7 May 2023 by Minh Danh Nguyen (ToughDev)
Developing vintage 68K Macintosh apps with CodeLite IDE, Retro68 and pce-macplus emulator
9 Nov 2021 by Member 12660776
Programmatically Adding New ConfigurationSectionGroup Corrupts Declaration Section With Multiple Group Declarations.
11 May 2016 by PilotProgrammer
Automatically switch between client solution's Test or Prod app.config file, for injecting environment settings into class library solution
16 Dec 2017 by Biswal Tanmaya
This blog post discusses the importance of logging in MySQL
31 Jan 2014 by VBTheory
Save and load configuration files in both XML and INI with ease
13 Jul 2016 by madhav_jain
Use "amp;" after & in value url
27 May 2022 by Rick York
I am not entirely clear on what you are asking but I'll take a shot. First, there are two kinds of libraries you can build - statically linked and dynamically lined. You define which kind(s) in the project settings of the library's solution. ...
30 Apr 2016 by Southmountain
A discussion on how to configure folder structures for C# application with SQLite databases and ADO.NET assemblies with targeting to any CPU, no matter 32-bit or 64-bit. Part 1 is theoretic consideration for project folder structures. Part 2 will give a demo to approve this concept.
23 Nov 2014 by Suniil Kumar Pal
Configuration settings need to be made to transfer large data with WCF
15 Oct 2015 by tymanski
A configuration management component for small and middle-sized projects
13 Jul 2016 by Jiten Madan
Getting error while adding values to key.Entity "File" not definedEntity "Action" not definedHow can i treat this two word as string and add it to value.ThanksWhat I...
10 Jan 2016 by GopalTiwari
It will give information about Installing and Configuring Apache Kafka & Zookeeper for Windows Operating System
16 Dec 2021 by Sauradipta Chaudhury
This is a coding solution to use Application Settings and Connection Strings sections under Configuration Menu in Azure Functions V2.x and above to store configurable entries.
22 Mar 2017 by FarhanShariff
I am try in to create a parser with to read configuration fileserror explicit specialisation in non namespace 'class Conversion'What I have tried:#include #include #include #include //holding the pair of parameter-value#include...
1 Nov 2015 by Ramiien
Hi, I am trying to access my API functions from DLL file. but getting this error"The program has unexpectedly finished."C:\MyDevelopment\build-PcanPortLinker-Desktop_Qt_5_5_0_MinGW_32bit-Debug\debug\PcanPortLinker.exe crashedMy DLL file config is as following.LIBS +=...
8 Nov 2015 by griffwk
To really see what's going on, you need to run your program under the debugger, and when the exception occurs, trap it, and post the debugger info here.i.e. Exception type, stack trace, source code on which the error occurs, etc.then, we might be able to pinpoint your problemgwk
23 Nov 2015 by Devendra lodha
Hi All,Hope you are well.I am trying to publish a web application on my local IIS but I am getting following error.HTTP Error 500.19 - Internal Server ErrorThe requested page cannot be accessed because the related configuration data for the page is invalid.See image for error...
23 Nov 2020 by xhon
I created a Rest web API and now I want to call the operations exposed by the API from a Proxy. My environment is Visual Studio, C#. As the operations that I exposed in the API share a part of the URL/endpoint ("api/NameOfTheController"), I...