共用方式為


部署報告中的組態檔區段

更新:2007 年 11 月

部署報告包含用於更新要部署之應用程式組態檔案的設定。在部署報告中,這些設定會出現在您需要部署之每個應用程式的 "Configuration" <Resource> 項目下。這個 "Configuration" 項目包含識別組態檔案設定的 <Setting> 以及其他 <Resource> 項目。不過,某些資源名稱並不符合組態檔中的對應項目。如需詳細資訊,請參閱部署報告中的應用程式資訊

秘訣

您可能需要使用 [設定和條件約束編輯器] 來加入適當的應用程式資源,才能讓它顯示在組態檔案和部署報告中。如需詳細資訊,請參閱設定和條件約束編輯器

下列方針會協助您將資源名稱對應到組態檔案項目:

  • 如果組態檔案項目是 System 命名空間 (Namespace) 的一部分,則部署報告中對應的資源名稱有時候會在前面加上該命名空間名稱。

    例如,組態檔案中的 <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>

請參閱

工作

HOW TO:在部署報告中尋找應用程式組態檔設定

概念

使用部署報告進行部署概觀