I want to change the "system.net" section in web.config. I want to add or remove defaultProxy tag according to a variable in runtime.
<defaultProxy enabled="true" useDefaultCredentials="false">
<module type = "XXX.Utils.YYProxy, XXX" />
</defaultProxy>
I know, there are related posts editing web.config, but they all related with ConnectionStringsSection
or AppSettingsSection
. There are specific classes about them in System.Configuration package, but I did not find any class related with "system.net".
Do you know any quick way to handle this? Thanks in advance