VS2010 assembly deployment package web.release.config error conversion

I get the converted web.config in the deployment package incorrectly converted.

The result is as follows (note how the connection chain is created):

<connectionStrings> <add name="xxxConnectionStringNamexxx" connectionString="$(ReplacableToken_xxxConnectionStringNamexxx-Web.config Connection String_0)" providerName="System.Data.SqlClient" /> </connectionStrings> 

Web.Config:

 <connectionStrings> <add name="xxxConnectionStringNamexxx" connectionString="Data Source=.\sqlexpress2005;Initial Catalog=xxxx;Integrated Security=True" providerName="System.Data.SqlClient" /> </connectionStrings> 

Web.Release.config:

 <connectionStrings> <add name="xxxConnectionStringNamexxx" connectionString="Data Source=.\sqlexpress2005;Initial Catalog=xxxx;Integrated Security=True" providerName="System.Data.SqlClient" xdt:Transform="SetAttributes(connectionString)" xdt:Locator="Match(name)"/> </connectionStrings> 

Any ideas? Thanks

+4
source share
1 answer

So, benoit found the answer on asp.net forums: ReplacableToken_ when using the web.config transform? .

I deployed to a folder on my desktop and the web.config file was converted correctly.

+3
source

All Articles