Is it possible to use connection strings in a Console app’s app.config file in a single machine config file instead? So all console apps on the server can use the same file?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could, but that would mean that any .NET application could gain access to your database.
I would advise against it, for several reaons:
app.confignotmachine.config.app.configfile and have everything just work (you will also need to import the connection string information to the newmachine.config).You really should keep the configuration with the application that uses it.