Web.Config 変換が公開されていません。エラーは、表示されているこれらの警告に関係していると思います。
Visual Studio 2010 を使用して、Web.Config
/Web.Config.Debug
ファイルをいじっています。
私の.Debug
ファイルには、次の警告が何度も表示されます。
No element in the source document matches '/configuration'
ファイルに存在するセクションごとにリストされていると思い.Debug
ます。
したがって、次のサンプル Web.Config.Debug ファイルでは、2 回リストされます。(私は推測しています、最初のものは用<connectionStrings>..</>
で、2番目は用です<system.webServer>...</.>
)
<?xml version="1.0"?>
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform" xdt:SupressWarnings="false">
<connectionStrings>
<add name="Foo" connectionString="Server=foo;Database=Foo;uid=foo;password=foo" providerName="System.Data.SqlClient"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
<system.webServer>
<httpProtocol>
<customHeaders>
<clear />
<add name="ETag" value="Dev_IIS" xdt:Transform="SetAttributes" xdt:Locator="Match(name)" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>
誰でも助けてもらえますか?