FAQ Database Discussion Community


MobileServiceTableOperationError When Adding New Field

c#,azure-mobile-services
I have an Azure Mobile Services project that is based off of the offline to do list example: http://azure.microsoft.com/en-us/documentation/articles/mobile-services-windows-store-dotnet-get-started-offline-data/ The example application with offline data is working as expected. The problem is when I want to modify the ToDoItem with a new field. If I modify the ToDoItem class with...

Creating an entity with a reference to an other entity in azure mobile service

c#,entity-framework,azure,ef-code-first,azure-mobile-services
I've created a azure mobile service which basically consist of 2 Entities and 2 TableControllers. Those both entities have a 1:1 relation. public class Entity1 : EntityData { public int Value { get; set; } public DateTime Date { get; set; } public string Name { get; set; } public...

Authenticating a PHP Web App with Azure Active Directory and Azure Mobile Services

azure,azure-mobile-services,azure-active-directory
I've got an existing mobile app that is integrated with Azure's mobile services. The mobile services are currently connected to Azure Active Directory with MFA enabled. I'm attempting to build a separate PHP-based web application that uses this existing mobile service and authentication. Authentication The only active directory of users...

Azure Mobile Service web.config does not update on server

paypal,azure-mobile-services
I have added paypal config in web.config and I can connect the paypal by local server. But it does not work when I published to AMS server. I got the following error Cannot parse *.Config file. Ensure you have configured the 'paypal' section correctly. <paypal> <settings> <add name="mode" value="sandbox" />...

How retrieve row position for azure mobile services tables

javascript,azure-mobile-services
Im using Azure Mobile Services (in a HTML client) for a simple Score Wall application. First the app take the top 100 scores client.getTable("ScoreWall").orderBy("score").take(100).read().then(... and later show the current user position client.getTable("ScoreWall").where({"userId":uid}).select("userId","score").read().then(... but I would like to retrieve the current user position in world rank.. I didn't found any documentation...

How do I tell Google the IP of an Azure Service Bus Notification Hub?

android,azure-mobile-services,google-cloud-messaging
According to Google, these are the steps to set up Android push notifications on Google Cloud Messaging service: In the sidebar on the left, select APIs & auth > Credentials. Under Public API access, click Create new key. In the Create a new key dialog, click Server key. In the...

Azure Mobile service database row count

azure,azure-mobile-services
I have a free mobile service on Azure and there are 3 tables. Can I somehow get number of rows in each table (using Azure portal or code)?

Send notifications to inactive users using Azure Mobile Services. Where to save the “lastLoginDate” and filter on it?

c#,ios,azure,xamarin,azure-mobile-services
I have always been using Parse to manage my backend but switched to Azure due to the better integration with ASP.NET and Xamarin. In Parse I created a PFInstallation object and associated whatever property I needed to filter on before sending push notifications. In Azure Mobile Services I am using...

New table Mobile Service Azure, can't get data

c#,azure,sql-azure,azure-mobile-services
How can I add additional tables in azure mobile services and programmatically insert and read data. I tried doing it similarly as the code from TodoItems table. My new table is created and I can insert data manually by using sql, but when I use private MobileServiceCollection<User,User> users; private IMobileServiceTable<User>...

Signal R Vs Push Notifications for real time applications like Chat

push-notification,xamarin,signalr,azure-mobile-services
I want to create a chat application for ios, android and windows phones as well as it should work with browsers in the future. My search led me to using Signal R with Azure Mobile Services(AMS). My questions: 1) SignalR uses Websockets under the hood. Is websocket supported in Android,...

How to get user name, email, etc. from MobileServiceUser?

c#,wpf,azure,azure-mobile-services,azure-active-directory
After a lot of digging around I've got my WPF application signing users in via Azure Mobile Service. My Mobile Service is connected to an Azure Active Directory that I have set up. However, when I log the user in with MobileServiceClient.LoginAsync(...) the MobileServiceUser UserId is in an unreadable hash...

How do I secure an Azure Mobile Service with Azure AD? ADAL.JS

azure,azure-mobile-services,azure-active-directory,adal
I have created an application in my Azure AD. I switch into the Mobile Service and go to the identity tab. For MS identity is asks for a client ID. I found the Client ID in the Azure AD configure tab. However, I had no idea what to use for...

Authentication after migrating to App Services Mobile App: uid vs sid

azure,oauth-2.0,azure-mobile-services,azure-web-sites
I've migrated form Azure Mobile Services to the new App Services Mobile App, and I'm using the new AMS 2.0.0-beta on the client-side. I have two providers (currently) implemented for OAuth 2.0: Google and Twitter. Previously, I was able to get the provider token via a claim in the principal...

Receive WNS push notfication on Windows phone silverlight 8.1

c#,silverlight,azure,windows-phone-8.1,azure-mobile-services
I have windows phone 8.1 silverlight application where I want to receive Notfications using the new framework, WNS. I have in the package.appxmanifest: <identity name="4657xxxxxxx" publisher="CN=xxxxx" version="1.0.0.0"/> and added it to the Mobile Service Hub. For this I have removed old references to MPNS usings, and added the following for...

Azure Mobile Services: migrate to non-Azure Windows Server

asp.net,azure,azure-mobile-services
I am planning to use Windows Azure Mobile Services for a new project. As far as I am concerned, Mobile Services are closely tied to Windows Azure. So far, I'm pretty happy with Windows Azure. What if, in the future, I decide to port the functionality to a non-Azure Windows...

Using DTO in Azure Mobile Service .NET throws target invocation exception

c#,.net,entity-framework,azure-mobile-services,dto
I use Azure Mobile Services .NET backend and we all know we have to use Entity Framework classes to map to the database creation/migration. So I need to use DTOs to serialize only the properties I want, computed properties etc. I'm following the Field Engineer example. But Automapper gave me...

Generating SAS for Blob Storage using 'azure-storage' npm not working

node.js,windows-azure-storage,azure-mobile-services,azure-storage-blobs
I am trying to get SAS access URL for a blob in azure blob-storage from a custom api in my azure-mobile-services. For this I am using the azure-storage node module, using this how-to guide. I have the required AZURE_STORAGE_ACCOUNT and AZURE_STORAGE_ACCESS_KEY env variables set in my mobile-serivces config. Below is...

Azure Mobile Services : Foreign key table objects are null in Query

azure,foreign-key-relationship,azure-mobile-services
I have two classes on my Azure Mobile Service, I am using a .NET backend and using the code first approach for my database tables. The two tables I am having issues with are Chip and PlayerChip. I can insert data and query from them individually without any problems, however...

Azure Mobile Services Error: More than one static class

c#,azure,azure-mobile-services
I renamed my projects assembly, and now since I've changed it I now get this error. More than one static class with name 'WebApiConfig' was found as bootstrapper in assemblies: Restful, Service. Please provide only one class or use the 'IBootstrapper' attribute to define a unique bootstrapper. I've came across...

How do I call a method from Azure Mobile Service custom Api?

android,azure-mobile-services
I have a following method form my AMS service and I want to call a method form my Android App. // POST: api/Bookings [ResponseType(typeof(Booking))] public IHttpActionResult PostBooking(Booking booking) { return CreatedAtRoute("DefaultApi", new { id = booking.Id }, booking); } ...

android device specific push notifications by using azure mobile services (.Net backend)

android,azure,azure-mobile-services
my question is the same as this one: android device specific push notifications by using azure mobile services But I'm using .Net backend. This is the part where I send the notification: Dictionary<string, string> data = new Dictionary<string, string>() { { "message", "this is the message" } }; GooglePushMessage message...

Autofac integration with Mobile Azure Service

c#,autofac,azure-mobile-services
I have created Mobile Azure Service project and integrated it with the Autofac. Here is my IocConfig.cs in which I have registered all ApiControllers and libs. var containerBuilder = new ContainerBuilder(); //Register API controllers containerBuilder.RegisterApiControllers(typeof(UserController).Assembly); /*Register Libs*/ containerBuilder.RegisterType<UserLib>().As<IUserLib>(); /*Register ObjectContexts*/ containerBuilder.RegisterType<MobileServiceContext>() .As<DbContext>().InstancePerDependency(); var...

How do I log into a web service that was auto-generated by Azure Mobile Web Services?

c#,testing,azure-mobile-services,visual-studio-2015
Microsoft's Azure Mobile Web Services lets you download a .NET or JavaScript Service and a client that talks to the Service. These are written in C#, or JavaScript. I chose to get one in C#. There is are several parts in the generated solution A Windows 8.1 desktop client (yourname.Windows)...

HttpResponseException thrown during InsertAsync at .NET Backend Mobile service

c#,.net,azure,web-api,azure-mobile-services
Firstly, I had this problem where the value of RequestStatus is unable to passed from client to Mobile Service during InsertAsync, which will be processed in null (client - mobile app) (server - Azure .NET Backend Mobile Service) Secondly, I had also tried to change its value in the debugger...

MobileService Offline Sync PullAsync does not return

c#,.net,windows-phone-8.1,azure-mobile-services
I am currently trying to update my Windows Phone App to use Mobile Services with Offline Sync. I used the msdn getting started, but it wont work for me. Everytime I call await table.PullAsync("table", table.getQuery()); it never finishes (program doesnt continue). Using fiddler I can see, that the client gets...

Authenticate against an Azure Mobile Service App with ADAL.js acquired token

c#,azure,mobile,azure-mobile-services,adal
I'm trying to authenticate a HTML app against an Azure Mobile Service app. The Setup Both apps use AAD as authentication backend, so both apps have an application registered in the Active Directory: Azure Mobile Service app: configured as described in https://azure.microsoft.com/en-gb/documentation/articles/mobile-services-how-to-register-active-directory-authentication/ I edited the manifest to enable the client...

Windows Azure Service Mobile get All data from table

android,azure-mobile-services
I need a little bit of help with Windows Azure and the query system. I can get data from the first row with this query Table.where().field("id").eq("1").execute().get(); but I want to get all of my table data (about 50 rows). Is there a query to get all the rows at once?...

Custom Help Page on Azure Mobile Services?

azure,web-api,azure-mobile-services
I am trying to make a clean & nice Documentation of my Azure mobile service, though the auto-generated help pages donot include the /// comment information I tried to import the Help page package from Nu-get but when i deploy they dont seem to work. Google search failed. Is there...

Aurelia web application calling azure mobile services API endpoint

azure,azure-mobile-services,aurelia
I am creating an Aurelia web project that will consume an API. The API is housed as an Azure Mobile Service. I know I need to add the X-ZUMO Auth header to the request. But, when I instantiate my http client, that header never makes it to the request headers...

AngularJS binding not occurring on page until a user action

angularjs,asp.net-web-api,angularjs-ng-repeat,azure-mobile-services
I've got my first angular app which displays some data from a list via ng-repeat. The controller for the view sets a few variables to scope - some directly in the function and another from an API call. The data from the in function load is showing up in that...

VS 2015 “Add Connected Service” -> “Mobile Services” - Configure button disabled

azure-mobile-services,xamarin.forms,visual-studio-2015
I just created a new Xamarin Forms project in Visual Studio 2015 RC. I want to use my Azure Mobile Service I created via the portal, so I right clicked on the References for the Portable app project in the solution and selected the "Add Connected Service..." menu item. It...

Azure Mobile server update script w/ complex field type

node.js,azure,azure-mobile-services
I've got a complex data type "AzureTemplate" containing a list of children "AzureField". I've implemented my read and insert on the server side according to this article. Works great. Needing an update as well, I copy/pasted the insert into the update so it does the same thing, but using update...

Publishing doesn't update the API (Azure Mobile Service)

azure,azure-mobile-services
After I publish my mobile service through Visual Studio, the online API doesn't change. It's driving me insane. The publishing process returns no errors, it says that the site was published successfully although I don't see any changes in the API. This is the API running on localhost, with the...

Re-use azure mobile service client across activities

c#,xamarin,monodroid,azure-mobile-services
I've been working with Azure Mobile Services and Xamarin Android and I'm currently stumped on how to re-use a mobile service client. Every Xamarin Android example I've seen uses a single activity that creates a new reference to a client. I would like to create a reference to the client...

Continous Integration on Azure Mobile Services?

tfs,continuous-integration,azure-mobile-services,continuous-deployment
Is there any way to enable continuous integration on azure mobile services using Team Foundation (TFS) source control? I have seen its easily done on Azure Websites and Cloud Services but i dont see an option on mobile services. My only option is to set up a custom server ?...

azure method blows up if the records does not exist

azure,azure-mobile-services
I am using this method from the azure mobile services tutorial: await todoTable.LookupAsync(id). I have 2 rows in a table of id 1,2. If i do await todoTable.LookupAsync(1), it works and return the record. If i do await todoTable.LookupAsync(8) to see how it's going to handle null, it just blows...

Custom MappedEntityDomainManager throws StackOverflowException

stack-overflow,automapper,azure-mobile-services
I created a custom MappedEntityDomainManager to map my data objects to the DTOs. For the last couple of day I'm trying to figure out in a TableController why it throws a StackOverflowException. This is the only MappedEntityDomainManager I have so far to test AutoMapper. The data object and DTO model....

Accessing Azure Mobile Service JavaScript Backend API with “Application” Permissions

azure-mobile-services
Is there a special way an API built in Azure Mobile Services with a JavaScript backend needs to be accessed? I'm porting some code from a .NET backend to JavaScript, and I specified application permissions, but when I login it keeps saying unauthorized. Previously, I would access it using HTTP...

Method not found: 'System.String RazorEngine.Templating.ITemplate.Run

c#,azure,azure-mobile-services,razorengine
I'm trying the new Azure Mobile App. Created the instance in Azure, and then downloaded the Visual Studio package. Updated all components via Nuget. And now when I run it, am getting following error : <Error><Message>An error has occurred.</Message><ExceptionMessage>Method not found: 'System.String RazorEngine.Templating.ITemplate.Run(RazorEngine.Templating.ExecuteContext)'.</ExceptionMessage><ExceptionType>System.MissingMethodException</ExceptionType><StackTrace> at...

How do I stop a table script from processing?

azure,azure-mobile-services
I am creating an insert script that does some business logic. Basically, I want to check to see if a value in the inserted item exists in a table. But, it seems like if I find a problem Request.Send() doesn't stop execution and get an error. I think there is...

Azure Mobile Services and Application Insights

azure,azure-mobile-services
I hava added Azure Application Insights to a new Azure Mobile Services (.NET backend) project. When I running it on my local machine it's sending data to insights. But when I deploy it to Azure it will not work. In the log at the portal I get the message below....

App consumes an extreme amount of API calls in Azure

azure,azure-mobile-services
I am tired and sad and frustrated here, and feel like a total moron. I am very sorry if my post is too long and not very well put together, but im beggin anyone with some experience here to please give me some advice. I am currently testing out a...

Combine azure mobile service autofac with nservicebus registrations

azure,nservicebus,azure-mobile-services
I am trying to combine the registrations of the azure mobile service and the nservicebus registrations. When i try to inject the IBus into an controller it doesn't work. public class AutofacConfig { public static void Register(HttpConfiguration http, ContainerBuilder container) { var busConfiguration = new BusConfiguration(); busConfiguration.UseContainer<AutofacBuilder>(c => c.ExistingLifetimeScope(container.Build())); var...

How to write part of the app on azure?

azure,windows-phone-8.1,sql-azure,azure-mobile-services
Hi all hope this question is actually asked the right way i have been researching for hours and i can't get anything that would help me achieve what i want... Here's the thing i am currently developing a windows phone app that uses cloud features (like sql azure,authentication,etc...) and what...

Adding custom Roles to Azure Mobile Services User (Google, Twitter, Facebook, Microsoft)

.net,authorization,azure-mobile-services
I have an .NET Azure Mobile Services project with some controllers I want to secure with the typical Authorize attribute. I can create a Roles table and a UserProfiles table and associate the various users authenticated through Google, Facebook, etc. with Roles in my Roles table. My question is: How...

Azure Mobile Service requires authentication for SignalR HTML/Javascript Client

azure,signalr,azure-mobile-services
I have a fresh Azure Mobile Service running locally at localhost:52253. I installed the latest SignalR Nuget Package: Azure Mobile Services .NET Backend SignalR Extension 1.0.450 I also have a test HTML/Javascript client served from localhost:54697/ After working out the CORs issues, I still cannot connect to signalR hubs because...

Azure Push notifications without Azure Mobile project?

c#,ios,cordova,azure,azure-mobile-services
I'm building a Phonegap application that uses a server backend built with .net MVC 5 & Web API2. It's hosted on Azure cloud services and all is working well. I now need to add some functionality to send push notifications when certain events happen. I've set up a Mobile Service...

Azure Mobile Service Table Controller and EntityState.Modified

azure-mobile-services
I am using Azure Mobile Service TableController. I am having trouble with foreign key relationships in the entity framework. I have two tables: Personsand Countries. Persons has a foreign key column to CountryId. On save, the entity framework creates a new row in the Countries table with the same name...

Cordova Content Security Policy

cordova,ionic-framework,azure-mobile-services,visual-studio-cordova,content-security-policy
I've got an Cordova app and after upgrading (5.0.0) it I'm unable to call any resource at all. I've added the whitelist plugin and added the following tag to index.html <meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' *.azure-mobile.net localhost:1337 *.ajax.aspnetcdn.com"> I got the following errors: Refused...

Can not create a mobil in azure recieve The upstream server reported that the resource was not found

azure,azure-mobile-services
I am trying to create a mobile service with a new database that I just provisioned, But when I do so I receive the below error. I have plenty of credit on my account. Does anyone know how to resolve the below error. RDFE: The upstream server reported that the...

Azure Mobile App - Table Controller using Entity Data Model class

c#,entity-framework,azure,azure-mobile-services
I have a Azure Mobile App project which by default created TodoItem table controller. I also have a DAL project which uses EF6 Entity Data Model which is referred in my other ASP.Net MVC project. I wish to use the same DAL project in my app project instead redefining each...

Microsoft Azure Mobile Service Javascript Custom API executes db stored procedure permission issue

api,azure-mobile-services
I have the following custom api function for HTTP GET, the permission is allowed for everyone: exports.get = function(request, response) { var mssql = request.service.mssql; mssql.query('exec dbo.spTest', { success: function (result){ request.respond(statusCodes.OK, result); }, error: function(err) { console.log("error is: " + err); } }) }; This is my stored procedure,...

Can I deploy an Azure Mobile Service .NET backend to an Azure Website

azure,azure-mobile-services,azure-web-sites
I guess the question is kind of double barreled, but can I deploy an azure mobile service .net backend to an azure website and if so how (can anyone point me to any resources regarding this or is it as simple as hitting the deploy button)? Thanks Matt...

SBNotificationHub crash on return from registerTemplateWithDeviceToken in Testflight Beta build distribution only

ios,azure,push-notification,azure-mobile-services
If I disable notifications for the app, I don't sync and the app runs fine. If they're enabled, and the code notices and tries to sync - it falls apart. App has been working 100% fine for weeks with no code changes. Wondering if switching between schemes of the same...

Azure Mobile Service get current table name with table object

azure,azure-mobile-services
I have an insert code inside of my tables in my Mobile Service in Azure, and I want to know if there is a better way to get the name of the current table my insert script is. Today the code of my table "ClientTest1" look like this: function insert(item,...

How to use Azure Mobile Service with Cordova Project AngularJS and C#?

c#,angularjs,cordova,sql-azure,azure-mobile-services
I want to use a database hosted on Azure with some sort of backend for my app made with apache cordova tools for visual studio. My thought was that I could create my JS object in the app itself send that to the C#/JS code on azure which will then...

Azure Mobile Services - Create new Account after Social Login

c#,azure,asp.net-web-api,azure-mobile-services
I try to combine 2 tutorials Custom authentication providers http://azure.microsoft.com/blog/2014/07/28/azure-mobile-services-net-updates/ Custom authentication http://azure.microsoft.com/en-us/documentation/articles/mobile-services-dotnet-backend-get-started-custom-authentication/ I want to create a new user Account with LinkedInLoginProvider (from 1 tutorial) like it was done with CustomLoginProvider (from 2 tutorial). My question is - How to integrate with default owin login pipeline for external logins...

WindowsAzure.MobileService breaking ASP.NET MVC application

asp.net,asp.net-mvc,azure-mobile-services
I am new azure mobile service and ASP.NET MVC and have successfully created a mobile service and published it. It works fine. My issue is how do I consume it in ASP.NET MVC application? I created an ASP.NET MVC application from scratch, added the following nuget WindowsAzure.MobileService. Happy days no...

After migrating database and mobile service the mobile service is still using old schema

azure,migration,database-migration,azure-mobile-services
I needed to move an azure project to a new account. My azure project consists of a SQL database and a mobile service connected to that database. I moved the database by backing up the database into a .bacpac file and importing it in a new Azure account. I recreated...

Azure Mobile Service Local Username & Pass

azure,azure-mobile-services
I'm trying to use the "try it now" feature when running azure mobile services locally but it is asking for a username and password. Can anyone tell me what these credentials are ? As far as I know running it locally should not require a user/pass. When I deploy it...

Windows Phone 8.1 Xmal With Azure Mobile Service Deployment Error: [MissingManifestResource_NoPRIresources]

windows-phone-8.1,azure-mobile-services,appx,appxmanifest
I am using Azure Mobile Service Offline with Windows Phone 8.1 (XAML). When I am using app with debug mode it is working fine. But, If i create package with Release mode. It Throw an error. and that is [MissingManifestResource_NoPRIresources] Currently I am using Following references in my Project <ItemGroup>...

HTML5 Push Notifications - examples of other ways to push

html5,amazon-web-services,azure-mobile-services,service-worker
At Google IO 2015, there was a lot of talk of the push notifications for Chrome with HTML5 and service workers. It's early days, and examples are thin on the ground. I'm looking for server side examples of how to implement the push from platforms other than Google Cloud Messaging...

Azure Mobile Services PushNotifications Device registration

azure,push-notification,azure-mobile-services
I'm building the app based on AzureMobileServices. But I meet the following problem. For some reasons I need few hubs per one AzureMobileService app (it will be used by few iOS apps so there is necessary to use different APNS certificates). I have implemented logic for send notification via necessary...

Xamarin IMobileServiceTable Not Filtering

c#,azure-mobile-services,xamarin.forms,xamarin-studio
I'm using IMobileServiceTable in an data access layer class and bind it to an listview. Initial loading works fine but filtering doesn't. It always returns the initial loaded data. public class ItemsManager { IMobileServiceTable<Item> itemTable; public ItemsManager (IMobileServiceTable<Item> todoTable) { this.itemTable = todoTable; } public async Task<List<Item>> GetTasksAsync (string searchString)...