asp.net mvc - why after deploying mvc app to azure tables not created? -


i use code first , app works on local database generated.

but when deploy azure, although succeeds, tables not created, empty database.

i excluded local app_data folder , chose run code first migrations in deployment options.

any tips what's wrong?

have configured azure deployment replace connection strings (via publishing wizard) or using environmental variables in code? doesn't sound it. sounds deployed localdb not work in azure.

you need either (there more options, these easy implement):

  1. configure deployment process update web.config sql azure connection string (you can use config transformations or deplyment wizard)
  2. use azure environmental variables used automatically when running in azure , local variables when locally