Most voted "app.config" questions
24 questions
Sort by count of
-
7
votes1
answer1263
viewsApp.config how to use`Connectionstring` encrypted
In my app.config I have a section that for my String connecting: </configSections> <connectionStrings> <add name="Azure.Onee"…
c# winforms cryptography connectionstring app.configasked 7 years, 9 months ago Thomas Erich Pimentel 3,059 -
7
votes2
answers808
viewsHow to save program settings, database or configuration file?
In my application, the admin user, can make some settings, for example: Configure if you want to use specific product templates, or stay open for the end user to type. Configure if you want to use…
-
5
votes1
answer1426
viewsC# App.config - Change BD address at installation time
I have a C# desktop application that when installed on a pc, must access a Mysql BD that is on another machine. The BD server address is configured in the file App.config . At the client’s request,…
-
5
votes1
answer633
viewsError executing Databasefactory.Createdatabase() method
I’m getting the following error while performing the function DatabaseFactory.CreateDatabase(): "Configuration system failed to boot" The app.config is as follows: <?xml version="1.0"?>…
-
5
votes1
answer1276
viewsEncrypt App.Config
I’m trying to encrypt my Connection string, that’s in my app.config. After reading some forums, I saw that 2 methods need to be created: class proteger_app { public static void Criptografar() {…
-
5
votes1
answer917
viewsHow to use multiple App.config
How to use more than one App.Config? I have a Solution with several projects. In each project there is an App.Config. When I try to read a key, either by AppSettingsReader or by…
-
5
votes2
answers260
viewsHow to save changeable parameters in the system?
I have an ASP.NET MVC project and I use web.config to save some parameters that will be used by the system, but should not be changed by any user. Now I have to implement some other parameters that…
-
4
votes1
answer119
viewsConfiguration file save directory with User C#scope
Regarding the configuration files in the C#, I’ve always used the App.config only to record strings connection and some read-only variables, but currently I needed to modify some data at runtime,…
-
3
votes1
answer2694
viewsConnection to the database with App.config
How to establish a connection to the Northwind database using App.config and ADO.NET?
-
3
votes2
answers616
viewsDynamic Connection EF C# Windows Forms Mysql
I have the following problem: EF creates a connectionString in the app.config and uses this connection always, but if you need to change the database server I will have to change the app.config. I…
-
3
votes3
answers297
viewsWhat is Appsettings for?
I was looking at Web.confg and would like to know what the <appSettings>? What it interferes with our application?
-
2
votes2
answers508
viewsWhat’s the difference between App.conf and Web.conf?
What is the difference between the App.conf and the Web.conf?
-
2
votes2
answers1703
viewsHow to get information from an App.config
I’m doing a program where I want the user to put in the variable the number you need because it will vary from computer to computer what will be the number you need. I’m using App.config for that…
-
2
votes1
answer827
viewsThe configuration section cannot contain a text or CDATA element
The error started to appear when I added the variable: <add key="Teste" value="true"/> Whole Config App.: <?xml version="1.0" encoding="utf-8"?> <configuration>…
-
1
votes0
answers93
viewsThe database creation wizard does not appear in the service based database and does not create a string Connection in the app.config in the Entity framework framework
I’m taking a virtual course on Entity framework in which the instructor uses visual studio in the 2012 version and during class he creates a web form project and asks to create a database in the…
entity-framework webforms visual-studio-2015 app.configasked 8 years, 4 months ago Leonardo Gustavo Maran 93 -
1
votes1
answer190
viewsPick up Variable from one Config directly on in another Config
A doubt. Is it possible to take the value of a variable from one config directly within the other config? Possible example below. Config1.config: <add key="webservice" value="http.teste.com"…
-
1
votes2
answers1605
viewsHow to configure the Connection String in App.config?
I would like to mount using saved String: InstanciaSQLServer, UserSQL and PWSQL, it is possible that? Example of my app.config <configSections> <sectionGroup name="userSettings"…
-
1
votes1
answer371
viewsHow to encrypt data in App.config
I would like to encrypt the Keys (Apikey and Secret) below in App.config: <?xml version="1.0" encoding="utf-8" ?> <configuration> <startup> <supportedRuntime version="v4.0"…
-
0
votes1
answer24
viewsCreate key with more than one file and delete everything at once
Can I create in the app.config a key pointing to multiple directories and the code pointing to that key and deleting all directories at once? Should each directory be separated by ";"? Type like…
-
0
votes0
answers36
viewsShould I use a "Provider" type service just to check if the user is logged in?
I have an application that makes use of the module ngRoute. When the url of a restricted page is accessed, I check if the user is logged in, and then allow access. Only I was replicating this…
-
0
votes1
answer769
viewsDatabase connection in Windows Form?
How to make/call the database connection in Windows Form? Knowing that the database configuration is in the app.config
-
0
votes2
answers727
viewsHow to rescue the App.config connection string from another project?
I have these connection strings on App.config of another project: <connectionStrings> <add name="ConexaoTeste1"…
-
0
votes2
answers111
viewsIncrease file upload limit by App.Config C#?
I’m having a problem, we used a file sending system that was done in Webapplication and we will implement it also in a dll. In Webapplication it is possible to configure in Web.config the maximum…
-
-3
votes2
answers70
viewsMODIFICATION AND READING OF DIRECTORIES IN C#
I am developing a C#project, which uses python scripts as an engine (I did not use Ironpython due to its limitations, I work with pandas), what I do is simply run the script through a PROCESS in c#,…