'How to solve database missing issue, when deploying ASP.NET MVC project to Azure?

I use database first approach in this web app. When I run the project on my local device, it is perfect.

After I publish the web app to Azure, and click the page displayed data, it returns an error page:

after deploy in azure



Solution 1:[1]

To publish your database, you have to click the Settings link as shown below: enter image description here

On the settings panel, you can set the connection string and choose update database during publish.

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 RajkumarMamidiChettu-MT