eZeeNow.com

it's your's

I can't access app.config from my web test plug in

I want to read the connection strings from my app.config of my Web Test Project but it never loads.

// Map the new configuration file.
ExeConfigurationFileMap configFileMap = new ExeConfigurationFileMap();
configFileMap.ExeConfigFilename =
   System.Reflection.Assembly.GetExecutingAssembly().ManifestModule.Name +".config";

// Get the mapped configuration file
var config = ConfigurationManager.OpenMappedExeConfiguration(
   configFileMap, ConfigurationUserLevel.None);

Comments (1) -

  • aingeru

    6/29/2017 1:37:45 AM | Reply

    The same question here. Thank you for your solution! This might be helpful as well: 192.168.0.1 https://19216801help.com/

Loading