I'm giving .config file path and i want to retrieve appSetting value for key=MYDATA from that given .config file.
I tried following code but not getting expected.
//System.Configuration.Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
        //var classLibrary1AppSettings = (System.Collections.Specialized.NameValueCollection)System.Configuration.ConfigurationManager.GetSection("appSettings");
        //config.AppSettings.File = "C:\\mydemo\\web.config";
want to get value for
key=MYDATA
