To get the path of the active app.config file in C# and VB.NET you can use the following snippet
Sample C#
AppDomain.CurrentDomain.SetupInformation.ConfigurationFile;
Sample VB.NET
AppDomain.CurrentDomain.SetupInformation.ConfigurationFile
To get the path of the active app.config file in C# and VB.NET you can use the following snippet
AppDomain.CurrentDomain.SetupInformation.ConfigurationFile;
AppDomain.CurrentDomain.SetupInformation.ConfigurationFile