Questions tagged as 'app.config'

0
answers

Generate a LOGGING file using System.Diagnostics. C #

I am trying to generate a .log file using System.Diagnostics in a console project. The problem is that the .log file that I generate, returns it to me empty. Here is the code I used in .NET : TraceSource tr = new TraceSource("Wall...
asked by 20.10.2017 / 17:27
1
answer

C # - Write in app.config and keep the changes

I can not modify a key defined in my configuration file at the runtime (app.config) and that the change is saved when I re-run my application next time. If I check the values at runtime I see that they actually change, but when I check the co...
asked by 12.04.2017 / 15:47
3
answers

get the data of an app.config specifically from the listeners of the trace

I need to get the route that is in the InitialData of my app.config <sharedListeners> <add initializeData="c:\software\app_messages.svclog" type="System.Diagnostics.XmlWriterTraceListener, System, Version...
asked by 13.11.2018 / 23:11
1
answer

Modify user in app.config

I have a dll where user and password are passed through the app.config to the webservice and I would like to see how to do this so that instead of passing a hardcode a variable is passed which can then be reported to the dll in time execu...
asked by 21.03.2018 / 16:16
0
answers

Access to the DB from a Web Service

I need to access the database from a web service, for which I have several projects within the solution .. the web service, by itself initiates a timer, which executes an action every X seconds. This action is inside a class library (Business) w...
asked by 23.11.2017 / 17:49