"Vincent" <> wrote in news:OUFT84XfKHA.2184
@TK2MSFTNGP04.phx.gbl:
> Anyone know what the problem is?
> Or is there a simpler alternative to what I am doing?
I did not read enough to solve your problem, but I have an alternative.
The main issue you have is config. In Visual Studio 2010 (.NET 4.0), you
will have options of deploying sites and changing confg. You do not have
that now, of course.
But, there is something you can do that is heading in the right
direction
In the config file, you can specify another file for different parts,
like app settings, conn strings, etc. What you do is create a new file,
like db.config.
You create one file for dev, another for test and another for
production.
You then move the test and production files to their respective servers.
In Visual Studio, you set it so these configs are not copied when you
publish a site.
That is pretty much it.
Any time you try to hard wire environments over config, you have things
upside down, at least in my book. Config == configuration. That means it
is supposed to configure the site, not force you to change the site to
match config.
Peace and Grace,
--
Gregory A. Beamer (MVP)
Twitter: @gbworld
Blog:
http://gregorybeamer.spaces.live.com
*******************************************
| Think outside the box! |
*******************************************