web deployment project, web.config section replacement is not work
am 26.11.2007 17:16:03 von IraGrollmanWhile 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:
Thanks, Ira
Also posted in ASP.NET forum without response