For Visual Studio 2010 Web based application we have Config Transformation features by which we can maintain multiple configuration files for different environments. But the
You can use a separate config file per configuration, e.g. app.Debug.config, app.Release.config and then use the configuration variable in your project file:
App.$(Configuration).config
This will then create the correct ProjectName.exe.config file depending on the configuration you are building in.