Share via


<system.net> Element

Contains settings for Internet applications.

<configuration>
   <system.net>

<system.net>
</system.net>

Child Elements

Element Description
<authenticationModules> Specifies the modules used to authenticate Internet requests.
<connectionManagement> Specifies the maximum number of connections to Internet hosts.
<defaultProxy> Specifies the proxy server used for HTTP requests to the Internet.
<webRequestModules> Specifies the modules used to request information from Internet hosts.

Remarks

The <system.net> element contains settings for classes in the System.Net namespace. The settings configure authentication modules, connection management, the proxy server, and Internet request modules for receiving information from Internet hosts.

Example

The following example shows the default configuration used by System.Net classes.

<configuration>
   <system.net>
      <authenticationModules>
         <add type = "System.Net.DigestClient" />
         <add type = "System.Net.NegotiateClient" />
         <add type = "System.Net.KerberosClient" />
         <add type = "System.Net.NtlmClient" />
         <add type = "System.Net.BasicClient" />
      </authenticationModules>
      <connectionManagement>
         <add address = "*" maxconnection = "2" />
      </connectionManagement>
      <defaultProxy>
         <proxy
            usesystemdefault = "true"
            bypassonlocal = "true"
         />
      </defaultProxy>
      <webRequestModules>
         <add prefix = "http"
            type = "System.Net.HttpRequestCreator"
         />
         <add prefix = "https"
            type = "System.Net.HttpRequestCreator"
         />
         <add prefix = "file"
            type = "System.Net.FileWebRequestCreator"
         />
      </webRequestModules>
   </system.net>
</configuration>

Configuration File

This element can be used in the application configuration file, the machine configuration file (Machine.config), and the publisher policy file.

See Also

Network Settings Schema