Hi folks,
My Web.Config Transformations are not getting published - and I think the error has to do with these warning(s) I'm getting.
Using Visual Studio 2010, I'm playing around with my Web.Config
/ Web.Config.Debug
files.
In my .Debug
file, I get the following warning listed numerous times.
No element in the source document matches '/configuration'
I think it lists it for each section that exists in the .Debug
file.
So with the following sample Web.Config.Debug file .. that will be listed twice. (i'm guessing, the first one is for <connectionStrings>..</>
and the second is for <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>
Can anyone help, please?