在.NET Windows应用程序中使用Windows/IE代理设置

在.NET Windows应用程序中使用Windows/IE代理设置,.net,security,proxy,.net,Security,Proxy,如何让Windows.NET应用程序使用Internet设置中配置的代理设置?当在别处发布HttpWebRequest默认使用Windows/IE代理设置时,没有发布的是,如果代理需要身份验证,则默认情况下不使用身份验证。可通过将以下内容添加到app.config来更正此问题: <system.net> <defaultProxy enabled="true" useDefaultCredentials="true" /> </system.net>

如何让Windows.NET应用程序使用Internet设置中配置的代理设置?

当在别处发布HttpWebRequest默认使用Windows/IE代理设置时,没有发布的是,如果代理需要身份验证,则默认情况下不使用身份验证。可通过将以下内容添加到app.config来更正此问题:

<system.net>
    <defaultProxy enabled="true" useDefaultCredentials="true" />
</system.net>

至少对我来说,一点解决问题的配置