I want to read app.config from the remote server on my NET 3.5 application.
For example, I'm updating "APP_CONFIG_FILE" to set remote app config like the below code.
It works fine on Windows 7 or previous windows version.
But on windows 8, the program is being in no-response stage(like kind of deadlock) when calling ConfigurationManager.AppSettings. There is no error message here and I have to kill the process manually by using Task manager.
I'll appreciate for any suggestion or comment.
static class Program { [STAThread] static void Main() { AppDomain.CurrentDomain.SetData("APP_CONFIG_FILE", "http://xxxx/app.exe.config"); MessageBox.Show(ConfigurationManager.AppSettings["HelpFile"]); } }Thanks