04 Mei 2012 23:47
I am trying to find a way to find which environment(dev, test, cert or prod) the windows service is running to set the connection string accordingly without supplying the server names.
I think i might be able to use Environment variables but i don't know for sure.
Does anyone have any information, any help is appreciated.
05 Mei 2012 4:18
to find which environment(dev, test, cert or prod)
On which indicator do you want to get this information; there are no default settings in any way how you can get this information?
Here you have to find your own solution, may on the machine name or an own knowledge base or something else.
07 Mei 2012 19:25
Thanks Olaf Helper for your response. But i am wondering that when i use the below in my dev environment
string MachineName = Environment.CurrentDirectory;
09 Mei 2012 18:10Moderator