Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to handle multiple Entity servers?
Message
From
07/12/2010 08:08:36
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
07/12/2010 07:59:56
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01491854
Message ID:
01491959
Views:
31
>Ah. OK, I totally missed that one. I only changed the app.config file.
>
>I'll check it out.
>
>Do you know if there is a way to have the application know what server I want to build the application
>for? Like using an environmental variable at start-up on my development machine and a different one
>on my production machine? Or do I have to change the config file every time?
>
>Thanks.

The config file is the way to change it for a given machine. If you install your application on a different machine, you just change the config file (once) for that machine. There is no reason I can think of to change it every time. For development work, just don't keep copying the new file when you update. I use source code control (Vault) and we typically just keep the app.confi and or web.config files excluded from source control so they don't get replaced with a get latest version. I do wish the a partial config file was supported so we can still update the file and push it to everyone without over writing the things that need to be machine specific. There are other solutions as well such as using your own config file and moving those things into it. MM does support a config file other than the app.confg and there is info on that in the dev guide.
Tim
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform