Nick
Nick

Reputation: 892

Problems deploying app and database to Azure

I have built an asp.net webforms app with a DB which works great locally. I created a new context with an initializer class as they describe here. The DB is nicely seeded with my initial data onto localDB and everything runs beautifully. (Doing code first, no migrations according to the tutorial in the link above).

I have published my app to its online counterpart and everything seems fine until I enter a page which I know contains a context of my DB. At this point the database should be seeded as it successfully does locally however I just receive a time-out error. I suppose it is not connecting to my DB properly.

What is the proper method of publishing a webforms app and DB together to Azure?

Upvotes: 0

Views: 39

Answers (1)

Xiaomin Wu
Xiaomin Wu

Reputation: 3777

Assume you are using Azure App Service (formerly known as Azure Website).

LocalDB is not supported see Using a LocalDb MDF file on Azure

please config your application to use remote database such as SQL Azure.

Upvotes: 2

Related Questions