Read web.config file outside the application folder in C#

I have a web application running on my server. And I needed to develop a small utility application which has to do some work in database, and I don't want to write same database credentials or connection strings(and some other additional app-settings) in this new console application, I want it to read settings from same web.config file.
Posted by: Muhammad Idrees
On 16 Apr 2018 | Views: 155 | Categories: XML, Visual Studio, Tips & Tricks, C#

Post your comments


Other lins

.Net Techies
Other lins