I have one solution with two projects one web application and one windows azure project.
To link the two i made a right click in Roles>Add>Web Role Project in Solution.
All works great so far. I am able to test the application through compute emulator on multiple instances and test it locally as well if i click View in Browser.
I am aiming to keep the same code running both locally and in the cloud so, azure only code is enclosed within a block such as
if(RoleEnvironment.IsAvailable) { } else { }
PROBLEM: The Web.config file is common to the web application and to the azure project and some configurations such as the TableStorageSessionStateProvider will not work locally so my question is...
<sessionState mode="Custom" customProvider="TableStorageSessionStateProvider">
<providers>
<clear/>
<add name="TableStorageSessionStateProvider" type="Microsoft.Samples.ServiceHosting.AspProviders.TableStorageSessionStateProvider"/>
</providers>
</sessionState>
QUESTION: Am i able to have two web.config files? One that is called when i browser the web site locally and one that is used when i test my application in compute emulator or when i deploy the solution to Microsoft Cloud?