Execute Code First Migrations on Azure with Remote Connection String -


i publishing azure web app, , i'm running strange issue executing code first migrations.

the remote connection string database working fine if not check "execute code first migrations".

publish web

however, if check box, strange connection string curious misspelling, "connetionstring", gets injected remote web.config:

<add name="dbcontext_databasepublish" connectionstring="dbcontext_databasepublish.connetionstring" providername="system.data.sqlclient" /> 

this, of course, not valid connection string , ef initializer throws exception

format of initialization string not conform specification starting @ index 0

the publish behavior same whether local connection string refers localdb, or connection string not defined in local web.config @ all.

am missing obvious?

in azure, had define connection strings both dbcontext , dbcontext_databasepublish in order migrations execute. msdn post , this answer lead me conclusion.

i'm not sure why i'm not seeing more references issue though. seems common problem.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -