Questions tagged as 'app.config'

1
answer

The configuration section can not contain a text element or CDATA

The error began to appear when I added the variable: <add key="Teste" value="true"/> Entire App.Config: <?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings> <add key="Teste" value="true"/...
asked by 05.06.2018 / 20:22
2
answers

Dynamic Connection EF C # Windows Forms Mysql

I have the following problem: EF creates a connectionString in the app.config of the application and always uses that connection, but in case you need to change the server of the bank I will have to change the app.config. I have tried a wa...
asked by 11.03.2016 / 23:27
2
answers

How to configure the Connection String in App.config?

I would like to mount using the saved string: InstanciaSQLServer , UserSQL and PWSQL , is it possible? Example of my app.config <configSections> <sectionGroup name="userSettings" type="System.Conf...
asked by 11.05.2017 / 13:28
1
answer

Get Variable from one Config directly to another Config

A doubt. Is it possible to get the value of a variable from a config directly inside the other config? Example possible below. Config1.config: <add key="webservice" value="http.teste.com" /> Config2.config: <add key="webservic...
asked by 18.10.2016 / 19:34
1
answer

How to get information from an App.config

I'm doing a program where I wanted the user to put in the variable the number they need because it will vary from computer to computer, which will be the number that needs it. I'm using the App.config for this but it's sending me to the blank re...
asked by 21.08.2017 / 17:57
1
answer

How 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" sku=".NETFramework,Version=v4.6.1" />...
asked by 02.07.2017 / 18:25
0
answers

The database creation wizard does not appear in the service based database and does not create a connection string in the app.config in the entity framework

I'm doing an entity framework virtual course 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 service-based-database template when creating a new i...
asked by 19.02.2016 / 14:47
1
answer

Connection to database in Windows Form? [closed]

How to make / call the database connection in Windows Form? Knowing that the database configuration is in app.config     
asked by 22.03.2017 / 15:02
2
answers

How to retrieve the connection string from App.config from another project?

I have these connection strings in App.config from another project : <connectionStrings> <add name="ConexaoTeste1" connectionString="RGF0YSBTb3VyY2U9JCQkXFNRTEVYUFJFU1M7SW5pdGlhbCBDYXRhbG9nPXRlc3RlOw==" providerNa...
asked by 23.03.2017 / 13:00
2
answers

Increase file upload limit by C # App.Config?

I have a problem, we use a file upload system that was done in WebApplication and we will implement it in a dll as well. In WebApplication, you can configure the Web.config maximum size of the file to be sent using the maxRequestLength (IIS
asked by 26.12.2017 / 15:09