Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

To use remote App.config file fails in Windows 8

$
0
0

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







Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>