NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Writing Administrator Configuration files

An administrator can create a configuration file that overrides any other configuration file on the machine it resides on. This XML-based configuration file can set policy for access to data, as well as assembly binding policies. For more information on the role the admin.cfg file plays in determining which assembly version is chosen for binding, see How the runtime Works with Assemblies.

Sample admin.cfg

The following is a sample madmin.cfg file from %windir%\complus\config. In addition to version policy settings, this file also contains configuration settings for the web server. These settings are documented separately.

<?xml version="1.0"?>
<configuration xmlns="x-schema:catalog.xms">
  <AppPoolList>
    <AppPool AppPoolID="AppPool32" 
             PeriodicRestartTime="211" PeriodicRestartRequests="212" MaxProcesses="213"
             PingingEnabled="214" IdleTimeout="115" RapidFailProtection="216"/>
  </AppPoolList>
  <SiteList>
    <Site SiteID="304" DefaultAppPoolID="AppPool32"
          HomeDirectory="%systemroot%\xspdt_invalid">
      <BindingList>
        <Binding Name="URLPre34"/>
      </BindingList>
    </Site>
  </SiteList>

  <webconfig xmlns=””> 
    <!-- xmlns=”” only needed when xmlns is specified in <configuration> root element -->
   <!-- ASP+ configuration -->
  </webconfig>

  <BindingPolicy>
    <BindingRedir Name="wininet" PK="" Version="0.5.0.10" VersionNew="0.7.0.1"
                  NoPublisherPolicy="no"/>
  </BindingPolicy>

</configuration>