B
Benne Smith
In our company, i have three servers;
1) a development server (mine only - here i make daily changes and test my
stuff)
2) a test server (for the users to test milestone builds - changes weekly)
3) production server (for when a new build is fully tested, and stable)
The problem is that the connectionstring in the web.config, should be
replaced with something else, for each of the enviroments.
Another problem is that, i use wsdl.exe to generate proxy classes to
communicate with my webservices. And these have the "this.Url" property
hardcoded to the webservice (starting with the development enviroment -
since that's the first release).
How can I;
1) Easily choose between a Development, Test, Production, so that the the
data in the web.config corresponds to what i want ?
2) Easily change a week old build of my exe, which has build in proxy
classes to the webservices, to point at another webservice ?
I'm looking for a solution that's easy to use from inside .NET, so i don't
have to manage ugly .bat files or something like this.
Thanks.
PS : I know i can put different keys into web.config, and make contants in
my code, but this means i have to recompile. I don't want this, i just want
to change an entire application from the state of (for example)
"development" to "test" with the 'click of a button'![Smile :-) :-)](/styles/default/custom/smilies/smile.gif)
1) a development server (mine only - here i make daily changes and test my
stuff)
2) a test server (for the users to test milestone builds - changes weekly)
3) production server (for when a new build is fully tested, and stable)
The problem is that the connectionstring in the web.config, should be
replaced with something else, for each of the enviroments.
Another problem is that, i use wsdl.exe to generate proxy classes to
communicate with my webservices. And these have the "this.Url" property
hardcoded to the webservice (starting with the development enviroment -
since that's the first release).
How can I;
1) Easily choose between a Development, Test, Production, so that the the
data in the web.config corresponds to what i want ?
2) Easily change a week old build of my exe, which has build in proxy
classes to the webservices, to point at another webservice ?
I'm looking for a solution that's easy to use from inside .NET, so i don't
have to manage ugly .bat files or something like this.
Thanks.
PS : I know i can put different keys into web.config, and make contants in
my code, but this means i have to recompile. I don't want this, i just want
to change an entire application from the state of (for example)
"development" to "test" with the 'click of a button'
![Smile :-) :-)](/styles/default/custom/smilies/smile.gif)