web deployment project, web.config section replacement is not work

While debugging why a web.config section replacement was not happening in the
real web application, I tried a simplified case, no replacement is enabled
and the connection string is not showing up?

Suggestions about what could be happening? The code:

Dim rootWebConfig As System.Configuration.Configuration
rootWebConfig =
System.Web.Configuration.WebConfigurationManager.OpenWebConf iguration(Nothing)

For Each objConnectionString As
System.Configuration.ConnectionStringSettings In _
rootWebConfig.ConnectionStrings.ConnectionStrings

lstCS.Items.Add(objConnectionString.Name & "|" &
objConnectionString.ConnectionString)
Next

Puts "LocalSqlServer|data source=.\SQLEXPRESS;Integrated
Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;U ser Instance=true
" into the listbox.

The web.config is:

<?xml version="1.0"?>
<configuration>

<appSettings/>
<connectionStrings>

<add name="test" connectionString="placeholder"/>
</connectionStrings>

<system.web>
<compilation defaultLanguage="vb" debug="true"/>

</system.web>
</configuration>

Thanks, Ira

Also posted in ASP.NET forum without response
IraGrollman [ Mo, 26 November 2007 17:16 ] [ ID #1879114 ]
Webserver » microsoft.public.inetserver.asp.general » web deployment project, web.config section replacement is not work

Vorheriges Thema: Membership ApplicationName
Nächstes Thema: Asp and Mysql