I am publishing an Azure Web application, and I ran into a weird problem performing the first code migrations.
The remote connection string for this database is working fine if I do not check "Perform the first code migrations."

However, if I check the box, a strange connection string is entered into the remote web.config with the curious spelling "ConnetionString":
<add name="DbContext_DatabasePublish" connectionString="DbContext_DatabasePublish.ConnetionString" providerName="System.Data.SqlClient" />
This, of course, is not a valid connection string, and the EF initializer throws this exception
The format of the initialization string does not match the specification starting at index 0
The publishing behavior is the same regardless of whether the local connection string refers to localdb, or whether the connection string is not defined in the local web.config at all.
Am I missing something obvious?
source share