Click here to Skip to main content
15,899,679 members
Everything / Config

Config

config

Great Reads

by honey the codewitch
An INI reader that is easy to use, easy to port, relatively efficient, and to the point
by Akhil Mittal
Create a config file; add, update and delete a configuration, and read a configuration in a Python app
by Thang Believe
Deep dive into cookies generation to support Remember Me at login
by RedDk
The solution to annoying garish webpages; say good-bye to all that irritating light while browsing the internet. Keep it dark ... learn how here.

Latest Articles

by ToughDev
Ultimate 68K Macintosh emulator
by honey the codewitch
An INI reader that is easy to use, easy to port, relatively efficient, and to the point
by Akhil Mittal
Create a config file; add, update and delete a configuration, and read a configuration in a Python app
by DotNetCraft
This article describes one of the easiest ways to read configurations from the App.config.

All Articles

Sort by Score

Config 

13 Dec 2021 by honey the codewitch
An INI reader that is easy to use, easy to port, relatively efficient, and to the point
9 Dec 2021 by Akhil Mittal
Create a config file; add, update and delete a configuration, and read a configuration in a Python app
29 May 2014 by Thang Believe
Deep dive into cookies generation to support Remember Me at login
15 Jul 2016 by Richard Deeming
The issue is that the System.Windows.Application class[^] has a property called Properties[^], which is hiding your application's Properties namespace. Any code within the Application class which tries to access Properties is looking at the property, not the namespace.To work around the...
16 Feb 2017 by RedDk
The solution to annoying garish webpages; say good-bye to all that irritating light while browsing the internet. Keep it dark ... learn how here.
16 Feb 2017 by Karthik_Mahalingam
try any oneMethod 1 : DataSet ds = new DataSet(); DataTable dtControls = new DataTable(); dtControls.Columns.Add("txtBox1Value"); dtControls.Columns.Add("txtBox2Value"); dtControls.Columns.Add("richTextBox1Value"); ...
22 Oct 2014 by CPallini
It depends on your scenario. In principle you may use any (reasonable...) kind of file to store the configuration settings of your application, since the operative system (or your favorite framework) provides means to read and write files. If you are using, for instance C# then have a look at...
18 Mar 2015 by Peter Leow
Check this out: C# using app.config to define font settings[^]
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...
11 Jul 2018 by Vincent Maverick Durano
I haven't tried using MySQL with EF, but I hope this short discussion helps: Enity Framework With MySQL - Stack Overflow[^] You can also check this documentation on how to properly connect MySQL with EF6: MySQL :: Connectors and APIs Manual :: 5.8.1 Entity Framework 6 Support[^]
20 Feb 2019 by Dave Kreskowiak
The .config file is usually sitting in the same folder as the application, under Program Files. Everything under Program Files is ReadOnly, including your .config file, to normal users. Administrators on the machine don't have that restriction, so long as the code is running with the elevated...
27 Mar 2014 by Aravindba
Hai I am delveloping website in one machine,but sql server is available in server machine,so how to access that sql database for my website.in my machine i will use connection string as
27 Mar 2014 by Member 8622273
try stopping and starting the SQL Server and SQL Server Browser services.
24 Nov 2014 by plaster
How do you config TFS to allow you to add a Work Id when you check out a file from Team Foundation Studio 2013. There is lots of stuff you can do on check in but very little on check out. I am changing from VSS to team foundation studio and find it very difficult to understand why such a...
7 Jan 2015 by Member 11283674
Hi All,After a long google search I came here for clarifications.I am new to SSIS.But am aware of few tasks .Recently I got a requiremnt for an SSIS job.I have developed and working fine in dev .Now its time for QA deploymentNow questions startedIn my dev environment ,I have...
18 Mar 2015 by Umesh AP
I have requirement to make Font related properties as configurable in my window application. But how to set FontStyle attribute in App.config & use it in my application (problem is that FontStyle is enumaration and how to convert string value to FontStyle)Thanks in advance.
18 Mar 2015 by Sergey Alexandrovich Kryukov
If you are really required app.config and nothing else (it could be any kind of configuration file holding current options which could be saved and loaded during runtime any time, in contrast to app.config), you need to read...
18 Mar 2015 by Umesh AP
Thanks for your help.I found http://stackoverflow.com/questions/8148622/get-enum-values-from-web-config-at-run-time[^] very useful and solve my issue.
24 Mar 2015 by Jeddi khan
I wrote an app and made an exe of it ,run it on my own machine, works fine.The same app on another machine when clicked to 'play',it says:See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.************** Exception Text...
29 Mar 2015 by Andy Lanng
hmm - looking into it. Maybe check hosts file: "C:\Windows\System32\drivers\etc\hosts" (::1 is localhost for eg) or the zeros are compresses so it's actually 0: 0: 0: 0 or the gateway has no true ip address.The method seems to return an arbitrary gateway. may I suggest some linq://Exact...
15 Dec 2015 by Richard MacCutchan
Please do not repost. I already answered this in the SharePoint forum.
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...
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,...
13 Jul 2016 by madhav_jain
Use "amp;" after &
15 Jul 2016 by Patrick Skelton
Hi,I have been trying to follow the MSDN instructions for adding settings to my WPF desktop application. I have added a setting using the designer and this results in a file called MyApp.exe.config in the \bin project output directory. Opening this file, I find my setting. Everything good...
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 Feb 2017 by Member 10566431
In my project,There are lots of datagridview and a binded dataset(datatables) to save and load the data.I can save dataset to xmlfile in easyway (dataset.writexml())but i also want to save lots of textbox or richbox control data to same xml file or any other file format.Can you provide...
5 Mar 2017 by Rajib13
Whenever we update some user setting by calling the following code (Here the property name is given as 'SomeProperty')Settings.Default.SomeProperty = TextBox1.Text;And save it by calling the save method like the following codeSettings.Default.Save();The value of 'SomeProperty' is...
7 May 2017 by Patrick Skelton
I have a standard WPF application which I am developing and running on Windows 10. I have used the Settings Designer to create a couple of settings, one user-scoped and one application-scoped. The 'top-level' WPF project is called 'MyApp.WPF' and this is set as both the assembly name and...
7 May 2017 by Patrick Skelton
In the end, only the 'nuke' approach seemed to fix this. I deleted the settings file completely, closed Visual Studio, deleted all \obj and \bin folders, and started again. This now produces single values in the MyApp.exe.config file. I think the whole system may have become confused by the...
11 Jul 2018 by Manoj Chamikara
I Have Two Entity in MYSQL Using Entity Framework 6.1.3v This is My Configuration File Relative Content
28 Aug 2018 by @k5hu
ConfigObject.jsp web.xml
20 Feb 2019 by fasonzo
In my program in VB.net, NOT C or C # I read my Config file for example like this: Imports System.Configuration Imports System.Collections.Specialized Imports System.Collections.Generic Module Module1 Sub LeggiConfig() Dim sAttr As String sAttr =...
20 Feb 2019 by OriginalGriff
Start by looking at the actual configuration file and its properties. Is the file marked as read only? Check the folder the config file is in: who has write permission to the folder? What ID is your app running under? If that doesn't fix it, look here: Steve Michelotti:...
20 Feb 2019 by Richard Deeming
Even if you have permission to edit the config file, you can't simply write to the AppSettings collection. You have to open the EXE configuration, change the settings on that instance, save that instance, and then refresh the main ConfigurationManager settings: Configuration configFile =...
22 Apr 2019 by Christian Graus
For a CORS string, a * works as a wild card
3 May 2019 by s yu
For a project deployed in the server, it is needed to make all of domains that contains "myCompany.com" accessible. It works if using But not if using How can this problem...
2 May 2019 by Christian Graus
Enable CORS for specific domains in IIS using URL Rewrite[^] Looks like there's ways of defining a range of URLs
3 May 2019 by s yu
I have found the solution for this problem. The approach is described below: 1) In the IIS7 Manager, click the project. 2) From the Feature View, click the icon for HTTP Response Headers. 3) For the "Access-Control-Allow-Origin", enter the values like that (having a single space between):...
2 May 2021 by zTrusted WF
What I want to do: I want to read a .CFG file and split the variables and values into text boxes. The .CFG file has several sections or main groups. I would like to automatically create textboxes in a loop depending on how many lines there are...
2 May 2021 by Dave Kreskowiak
That is your standard, everyday, outdated .INI file. There's plenty of articles here on CP that show you how to deal with them. All it takes is a little search[^].
9 Feb 2017 by dale.newman
An alternative to .NET Configuration Handler
28 Mar 2017 by DotNetCraft
This article describes one of the easiest ways to read configurations from the App.config.
7 May 2023 by ToughDev
Ultimate 68K Macintosh emulator
26 Nov 2015 by Peter Occil
Describes details of how a calculator program is implemented with the help of my CBOR library
13 Jul 2016 by madhav_jain
Use "amp;" after & in value url
9 Dec 2016 by Shesh Lamichhane
Step by step to add the transformation files of app.config in your .NET Windows service
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...
27 Jan 2016 by Er. Ajay Rathod
i am try to different way like this example :-https://gist.github.com/joeriks/5630458[^]
2 Jun 2016 by Laviee
i have created a setup project for my solution in visual studio 2008 but while installing this MSI build package i am getting Config.Csproj error stating"D:\Applications\Config.csproj : error : The source file D:\Applications\Config.csproj is actually a directory. the move task does...
21 Nov 2017 by Khaja Moiz
May i know the path1 from where you are loading it into XML document reference variable. And what is the error you are facing.
4 Dec 2020 by Mahesh Alappuzha
i have application it required logging mechanism .am using log4Net for logging. my requirements are 1)it should create new log file when i start application (errorlog.txt) 2)it should keep one backup log file (errorlog_prev.txt) i tried this...
5 Jun 2015 by Member 11739626
Hello,I have created an application that builds a DLL along with an EXE that references several delivered runtime DLL's. The built DLL and EXE have been built with VS2012, and the delivered runtime DLL have been built with VS2010. When I attempt to execute the application, I will receive...
22 Apr 2019 by s yu
In my app, I want to use wildcard to use * to substitute the "https://XXXXXX.com" in the webconfig file. What is the procedure I should follow to do so? Thanks. What I have tried: How to use wildcard in config file?
7 Jul 2021 by shiva_yn
i am using vb.net for windows application. i want o know to update the custom tag in config file. in app config file initially i stored empty string. after my application run time i will replace the empty string into some value.