re:
!I have been looking into web config file section replacements
!I have set it buy putting in the line into the deploy section
!connectionStri ngs=connectionS trings.config;
!I then have a file by that name in the root directory
!Am I missing a step?
You are missing the configSource attribute in web.config :
<connectionStri ngs configSource="s ubdirectory/connectionStrin gs.config"/>
or, if connectionStrin gs.config is in the root of the application :
<connectionStri ngs configSource="c onnectionString s.config"/>
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
=============== =============== ========
"ThatsIT.net.au " <me@workwrote in message news:0F******** *************** ***********@mic rosoft.com...
I have been looking into web config file section replacements
I have set it buy putting in the line into the deploy section
connectionStrin gs=connectionSt rings.config;
I then have a file by that name in the root directory
with
<?xml version="1.0"?>
<connectionStri ngs>
<add name="ioSQL" connectionStrin g="my connection string"/>
</connectionStrin gs>
if I add another connection string to my web.config it tells me that they cannot merge so I know that the file is
being found, but in debug or release it uses the same connection string from web.config
Am I missing a step?