Questions tagged as 'app.config'

1
answer

App.config how to use 'ConnectionString' encrypted

In my app.config I have a section that for my String connection: </configSections> <connectionStrings> <add name="Azure.Onee" connectionString="Server=tcp:tps****.database.windows.net,1433;Data Source=tps****.databas...
asked by 12.09.2016 / 14:52
2
answers

How 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 users. Now I have to implement some other parameters that can be changed by users, without ha...
asked by 09.11.2017 / 20:37
1
answer

How 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 System.Configuration.ConfigurationManager.AppSettings th...
asked by 23.08.2017 / 19:08
1
answer

C # App.config - Change DB address at installation time

I have a C # desktop application that when installed on a pc, should access a Mysql DB that is on another machine. The DB server address is configured in the App.config file. At the client's request, at the time of installation I need to...
asked by 31.07.2015 / 20:13
2
answers

How to save program, database, or configuration file settings?

In my application, the admin user can make some settings, for example: Set whether you want to use certain product templates, or leave it open for the end user to type. Configure whether to use TIPE table, or whether NCM will be open for t...
asked by 18.10.2016 / 12:19
1
answer

Encrypt App.Config

I'm trying to encrypt my connection string , which is in my app.config . After reading some forums, I saw that 2 methods need to be created: class proteger_app { public static void Criptografar() { Configuration confi...
asked by 26.07.2016 / 22:26
1
answer

Connecting to the database with App.config

How to establish a connection to the Northwind database using App.config and ADO.Net?     
asked by 27.06.2014 / 02:48
1
answer

Scope configuration file saving directory with User C #

For configuration files in C # , I have always used App.config only to write connection strings and some read-only variables, but currently I needed to modify some data at run time, hence the scope issue: User and Application...
asked by 20.09.2018 / 19:36
1
answer

Error while executing DatabaseFactory.CreateDatabase ()

I'm getting the following error when executing the DatabaseFactory.CreateDatabase() function:    "Setup failed to initialize" The app.config is as follows: <?xml version="1.0"?> <configuration> <startup&...
asked by 25.12.2015 / 00:03
2
answers

What is the difference between App.conf and Web.conf?

What are the differences between App.conf and Web.conf ?
asked by 23.01.2015 / 20:02