<defaultProxy> Element (Network Settings)
Configures the Hypertext Transfer Protocol (HTTP) proxy server.
<defaultProxy enabled="true|false" useDefaultCredentials="true|false" <bypasslist> … </bypasslist> <proxy> … </proxy> <module> … </module> />
The following sections describe attributes, child elements, and parent elements.
Attributes
| Element | Description |
|---|---|
| enabled | Specifies whether a web proxy is used. The default value is true. |
| useDefaultCredentials | Specifies whether the default credentials for this host are used to access the web proxy. The default value is false. |
Child Elements
| Element | Description |
|---|---|
| Provides a set of regular expressions that describe addresses that do not use the proxy. | |
| Adds a new proxy module to the application. | |
| Defines a proxy server. |
Parent Elements
| Element | Description |
|---|---|
| Contains settings that specify how the .NET Framework connects to the network. |
The following code example uses the defaults from the Internet Explorer proxy, specifies the proxy address, and bypasses the proxy for local access and contoso.com.
<configuration>
<system.net>
<defaultProxy>
<proxy
usesystemdefaults="true"
proxyaddress="http://192.168.1.10:3128"
bypassonlocal="true"
/>
<bypasslist
<add address="[a-z]+\.contoso\.com" />
</bypasslist>
</defaultProxy>
</system.net>
</configuration>
<bypasslist
<add address="[a-z]+\.contoso\.com" />
</bypasslist>
Should be
<bypasslist>
<add address="[a-z]+\.contoso\.com" />
</bypasslist>
There is a > missing after begin tag Bypasslist
- 7/6/2009
- Danny Hansen
- 7/6/2009
- Thomas Lee
- 6/3/2009
- jpsanders
- 6/4/2009
- Thomas Lee