私のweb.configで
<connectionStrings>
<add name="Context" connectionString="Server=tcp:database.windows.net,1433;Database=DbDev;User ID=xxxx;Password=xxxx.;Trusted_Connection=False;Encrypt=True;MultipleActiveResultSets=True"
providerName="System.Data.SqlClient" />
<connectionStrings/>
私のweb.Debug.config
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<connectionStrings>
<add name="Context" connectionString="Server=tcp:database.windows.net;Database=DbDev;
User ID=xxxx;Password=xxxx.;
Trusted_Connection=False;Encrypt=True;MultipleActiveResultSets=True"
providerName="System.Data.SqlClient" xdt:Transform="Replace" xdt:Locator="Match(name)"/>
</connectionStrings>
<system.web>
<customErrors mode="Off" xdt:Transform="Replace">
</customErrors>
</system.web>
</configuration>
私のweb.Release.configで
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<connectionStrings>
<add name="Context" connectionString="Server=tcp:database.windows.net;
Database=DbProd;User ID=xxxx;Password=xxxx.;
Trusted_Connection=False;Encrypt=True;MultipleActiveResultSets=True"
providerName="System.Data.SqlClient"
xdt:Transform="Replace" xdt:Locator="Match(name)" />
</connectionStrings>
<system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" />
<customErrors defaultRedirect="GenericError.htm" mode="On" xdt:Transform="Replace">
<error statusCode="500" redirect="InternalError.htm"/>
</customErrors>
</system.web>
</configuration>
本番データベース DbProd を取得していないだけです