0

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?

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

2 Comments

Do you do that by just changing the connection string to the remote connection string?
yes. but depends on where your remote database is. you might need to do some extra configuration on the database end. e.g azure.microsoft.com/en-us/documentation/articles/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.