Поділитися через


Enable the Use of Defaults Using IIS Manager

The General Configuration page of the AppFabric configuration dialog box enables you to do the following:

  • In the Identity section, you can determine which server, Web site, and application applies to the service (depending upon the scope), and see what the name of the service is.

  • In the service defaults section for the service scope, you can specify that defaults will be used for the configuration of the service. The Use Defaults control is available only in the configuration dialog box for a service, and not in the configuration dialog box for an application, site, or server. Note that the Use Defaults button is always disabled for a tagless service.

When you select the use of defaults, the service uses the merged chain of nameless behaviors in the IIS hierarchy. The service inherits configuration settings from all levels in the IIS hierarchy. For more information, see Configuration Process in AppFabric.

You should proceed in the following order when configuring the entire server configuration tree:

  • Configure the defaults for your server and sites.

  • Import your applications and then configure them and the services that they contain.

Note

The reason for this order is that configuring the defaults at a level can cause the entire tree to recycle. This should be done before any application actually runs to avoid the cost of recycling applications.

To configure the use of defaults for a service

  1. Open IIS Manager by clicking Start, clicking All Programs, clicking Windows Server AppFabric, and then clicking Internet Information Services (IIS) Manager.

  2. In the Connections pane of IIS Manager, expand the server to the application level, and then click the appropriate application.

  3. Double-click the Services node in the Features view, select the service that you want to configure defaults for, and then click Configure under Manage WCF and WF Services in the Actions pane. Note that the General tab will be selected by default.

  4. To specify that the service should use configuration defaults at the server, site, or application level, click Use Defaults.

    Note

    This sets the service’s behaviorConfiguration in the application Web.config file to “”. The service will then take its configuration settings from values merged from the nameless behaviors of the application, site, and server Web.config files. For more information, see Configuration Process in AppFabric.

    Note

    If defaults are already enabled, a note will indicate that defaults are currently being used and the Use Defaults button will not be available. You cannot revert to not using defaults in the UI. To revert, you must change the Web.config file manually. For more information, see Configuration Process in AppFabric.

  5. Click OK.

  2012-09-12