asp.net - Service Unhealthy: Code-First Migration on Azure Mobile Services (.NET backend) -



asp.net - Service Unhealthy: Code-First Migration on Azure Mobile Services (.NET backend) -

i've been stuck days problem. i'm trying create mobile service in .net backend , publish azure.

i've followed tutorial mobile-services-dotnet-backend-how-to-use-code-first-migrations setup code first migration on mobile service project.

it works fine when deploy locally, when publish azure, gives me frowny service unhealthy

and see error in logs

information changed service health 'critical' (service unhealthy. please check service logs determine issue , how right it.) previous state 'healthy' (the service considered in healthy state.). app.healthreporter 20/06/2014 06:00:03

error boot strapping failed: executing 'webapiconfig.register' caused exception: 'windows logins not supported in version of sql server.'. app.hosting 20/06/2014 06:00:03

this matches symptoms in blog code-first migration problem ams, can't apply solution. mentions grants command generated user

grant command on schema::[dbo] [the generated user login]

but have no thought applied, generated user login, etc. database i'm using dedicated mobile services project, won't have tables other project.

more importantly, there improve way of doing ? in problem naming seems wrong work-around, there improve of way setting database azure mobile service .net backend project ?

please help

the issue seems connection string deployed service using -- seems trying log in windows credentials won't work against sql azure.

are working db ams set or did set 1 yourself?

to see connection string deployed service working (including user, etc.) can go site , inspect application settings , connection strings application:

http://{yoursite}.scm.azure-mobile.net

after logging in check under environment , connection string called ms_tableconnectionstring. in there find user , password ef tries connect with.

hope helps,

henrik

asp.net azure sql-azure code-first-migrations azure-mobile-services

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -