部署报告中的配置文件部分

更新:2007 年 11 月

部署报告包含更新用于部署的应用程序配置文件所需的设置。在部署报告中,这些设置显示在需要部署的每个应用程序的“Configuration”<Resource> 元素下。此“Configuration”元素包含用来标识配置文件设置的 <Setting> 和其他 <Resource> 元素。但是,有些资源名称与配置文件中的对应元素不匹配。有关更多信息,请参见部署报告中的应用程序信息

提示:

您可能需要使用“设置和约束编辑器”将适当的资源添加到应用程序,该应用程序才能显示在配置文件和部署报告中。有关更多信息,请参见设置和约束编辑器

下面的准则有助于您将资源名称与配置文件元素相匹配:

  • 如果配置文件元素是 System 命名空间的一部分,则在部署报告中,对应的资源名称有时会使用该命名空间作为前缀。

    例如,配置文件中的 <System.Web> 元素对应于部署报告中的 SystemWebSectionGroup 资源。

  • 如果配置文件元素没有子部分,或者最多包含一个子部分,则部署报告中对应的资源名称将会追加“Section”文本。

    例如,配置文件中的 <appSettings> 元素对应于部署报告中的 AppSettingsSection 资源。

  • 如果配置文件元素包含至少一个子部分,则部署报告中对应的资源名称将会追加“SectionGroup”文本。

    例如,配置文件中的 <system.net> 部分对应于部署报告中的 NetSectionGroup。

  • 部署报告中的设置将与它们在配置文件中的对应项具有相同的名称。

下表列出了资源名称和对应的配置文件元素。

部署报告中的资源名称

配置文件元素

AppSettingsSection

<appSettings>

ConnectionStringsSection

<connectionStrings>

NetSectionGroup

<system.net>

ProtectedConfigurationSection

<configProtectedData>

SerializationSectionGroup

<system.xml.serialization>

SystemWebSectionGroup

<system.web>

TransactionsSectionGroup

<system.transactions>

WindowsFormSection

<system.windows.forms>

有些资源名称不会遵守本主题中的准则。下表列出了这些资源、这些资源的父资源以及配置文件中的对应部分。

资源名称

父资源名称

配置文件元素

DeviceElement

MobileControlsSection

<device>

ProviderSettings

HealthMonitoringSection

MembershipSection

ProfileSection

ProtectedConfigurationSection

RoleManagerSection

SessionStateSection

SiteMapSection

WebPartsPersonalization

<providers>

SystemWebCachingSection

SystemWebSectionGroup

<caching>

WebPartsPersonalization

WebPartsSection

<personalization>

WebPartsPersonalizationAuthorization

WebPartsPersonalization

<authorization>

WebPartsPersonalizationAuthorizationRule

WebPartsPersonalizationAuthorization

<allow>、<deny>

请参见

任务

如何:在部署报告中查找应用程序配置文件设置

概念

使用部署报告进行的部署概述