I have a MVC web site that worked well, until I moved it into test, where it fell over. After some investigation If found that because I had split the 'model' into its own seperate project, the model was using the connectionstring from its own app.config (not the web.config of the website).
So I found an article somewhere (can't find the link now), showing how I can use the web.config instead - great, I got the site into test.
Unfortuanatly, the next time I tried to get the site implemented in test again, I got the same problem, and after a while discovered that somehow the app.config of my model had re-written the connection string DOH!
What is the best practice here? I need the database configuration to be in a file that is easily changed by my system administrators