amitairos
amitairos

Reputation: 2967

Azure ASP.NET Backend for Android problems

I'm trying to create a .NET backend for my Android app using Azure.
I tried creating a ASP.NET web application based on the provided template for Mobile Services in Visual Studio.
Inside there is also a Seed to create a table and store some info in it.
I entered my credentials, Azure website URL, and Connection String.

However, when I publish the app, the table isn't created.
I tried to create the table myself, but it doesn't fill the table with the data.
What should I do?

Upvotes: 0

Views: 60

Answers (1)

Adrian Hall
Adrian Hall

Reputation: 8035

Are you using Azure Mobile Apps or Mobile Services? You can't interchange the two. Since you cannot create Mobile Services any more, make sure you are using the right template.

Aside from that, turning on debugging and looking at the SQL statements is a good idea. Also, note that you need to send a query to the site before the table is created.

For info on turning on debugging, see: https://shellmonger.com/2016/05/11/30-days-of-zumo-v2-azure-mobile-apps-day-19-asp-net-table-controllers/

For information on how Entity Framework initializes data, see .NET Server SDK with Entity Framework in the Mobile Apps wiki.

Upvotes: 3

Related Questions