I have the app.config file like this
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appsettings>
<add key="ServiceName" value="MyService1" />
<add key="URL" value="https://mydomain.com/test/main.asmx" />
...
</appsettings>
</configuration>
=================================================================
Now what I need to do from application, I need to add the proxy settings to the config file, on some special UI events.
So, the app.config file will look like this--
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appsettings>
<add key="ServiceName" value="MyService1" />
<add key="URL" value="https://mydomain.com/test/main.asmx" />
...
</appsettings>
<system.net>
<defaultproxy>
<proxy scriptlocation ="https://mysecuredomain.com/conf/proxy.pac" />
</defaultproxy>
</system.net>
</configuration>
Your help will be appreciated.
Thanks