问题标签 [azure-mobile-services]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
208 浏览

json - Windows Azure 移动服务时间(mssql)JSON 序列化错误

我在 SQL 中遇到时间数据类型的问题。我正在使用这里描述的 TimespanConverter http://blogs.msdn.com/b/carlosfigueira/archive/2012/08/30/supporting-arbitrary-types-in-azure-mobile-services-managed-client-simple -types.aspx可以很好地插入数据,但是在检索它时会返回通用格式的 DateTime(没有正确位置的时间)。例如,“14:45:00”的时间将返回“0013-12-31T00:00:00.000Z”,而对于更早的时间,例如“09:00:00”,则返回 null。

还有其他人面临同样的问题吗?

提前致谢!

(也在这里发布:http: //social.msdn.microsoft.com/Forums/en-US/azuremobile/thread/5110ed4b-7912-49d9-9e6c-9acd9277d52b

0 投票
1 回答
916 浏览

azure - 使用移动 Azure 服务验证 MVC4 移动 Web 应用程序

如何使用移动 Azure 服务对 MVC4 移动 Web 应用程序进行身份验证?

我想从 MVC 应用程序验证 Live Id,并且我想使用移动 Azure 服务作为后端,以便它可以与我们的 Windows 8 应用程序共享相同的服务。

0 投票
1 回答
2472 浏览

c# - 插入到 Windows Azure 移动服务时出现 500 内部服务器错误?

使用从 Azure for Mobile Services 网站修改的以下代码时,我收到“Microsoft.WindowsAzure.MobileServices.MobileServiceInvalidOperationException was unhandledMessage: Internal Server Error (500 InternalServerError - Details: {"code":500,"error":"Internal服务器错误“})”错误。

我的代码:

可能很重要的一件事是我能够将一个引脚插入数据库,但之后会引发此错误。此外,如果我在 if(Pins.Count < 1) 行设置断点,则表明当数据库中有 pin 时 Pins.Count 返回 0。

此外,在 Azure 管理门户中,我将以下内容作为插入脚本(来自http://www.windowsazure.com/en-us/develop/mobile/tutorials/authorize-users-in-scripts-dotnet/) :

和我的阅读脚本:

错误正在“等待 pinTable.InsertAsync(pin);”上引发 Refresh() 中的行。我的 Azure 管理门户中没有错误日志。如果您需要任何其他信息,请询问:)

更新 1:我认为我的问题与http://social.msdn.microsoft.com/Forums/en-US/azuremobile/thread/82ae07a1-5832-4dc9-97d7-1cda1fb33bc2有关,但这个问题仍未得到解答。

0 投票
2 回答
570 浏览

c# - Windows Phone 7 访问 Azure 移动服务(远程服务器返回错误:未找到)

我尝试从 Azure 创建一个新的移动服务,并且数据已被 Json 正确公开。

https://lifehope.azure-mobile.net/tables/USERPF

USERPF 是一个示例表。

为了简化问题,我只是将权限修改为“所有人”。

问题是下面列出的代码不起作用。错误消息是:远程服务器返回错误: 当我点击插入按钮在 USERPF 中插入新记录时未找到...

//USERPF.cs

//JsonHelper.cs

0 投票
0 回答
66 浏览

azure - 无法创建 Azure 移动服务

可能重复:
无法获取移动服务的位置信息 - 错误 400

最近我有一个 Azure 试用订阅来试用移动服务,但每当我尝试创建

新的移动服务我收到此错误消息。有什么解决方案可以解决吗?

在此处输入图像描述

0 投票
1 回答
417 浏览

gzip - Windows Azure 移动服务和压缩

Windows Azure 移动服务是否支持 GZIP 压缩?

0 投票
1 回答
2198 浏览

authentication - 在 Azure 中使用 Facebook 对移动服务进行身份验证

我在 Azure 中对移动服务进行 Facebook 身份验证时遇到问题。

更具体地说,我已经有一个使用Facebook C# SDK的应用程序,它运行良好。我可以登录,获取我的朋友列表等等。我想继续使用这个 SDK,但我也想对 Azure 移动服务进行身份验证。因此,我的计划是,使用 Facebook C# SDK 登录(就像我今天所做的那样),获取身份验证令牌,并将其传递给MobileServiceClient.LoginAsync() - 函数。这样,我仍然可以拥有 Facebook C# SDK 中的所有不错的功能,并且还可以使用 Azure 移动服务中的内置身份验证系统。

加载完成后,执行以下操作:

但是,当我调用上面的最后一行代码时,我得到了这个异常:MobileServiceInvalidOperationException,“错误:POST Facebook 登录请求必须在请求正文中指定访问令牌。”

我找不到有关如何格式化 accesstoken 的任何信息,我尝试了很多不同的密钥(而不是您在我的示例中看到的“authenticationToken”)。我也尝试过传递 accesstoken 字符串,但似乎没有任何效果。此外,如果我使用 MobileServiceClient.LoginAsync() 进行全新的登录,它工作得很好,但强迫用户登录两次似乎很愚蠢。

任何帮助是极大的赞赏!

0 投票
1 回答
206 浏览

c# - Will Azure Mobile Services allow me to exchange targeted messages between apps?

I am creating (in the formative, smoke-coming-out-of-ears stage) a pair of apps, one Windows 8, its companion WP8. Communication needs to take place between the pair, but only between those invited to participate in the conversation (invitation sent by the Windows 8 app) and those who have agreed (using the WP8 app).

IOW, it may look like this:

Billy-Bob is the only person who receives messages from Miley, Wiley, Kiley, and Riley. Rory is the only person who receives messages from Lou, Rod, Gerry, and Ted.

I'm thinking Windows Azure Mobile Services might be the best way to implement this, using raw WNS push notifications. But I don't know if this is feasible with WAMS, or if I'd be trying to force an octogonal object into a trapezoidal receptacle.

Would this be practical? If not, why? If so, how do I proceed?

My other option is to use ssl sockets, but I'd prefer to avoid that if possible.

0 投票
2 回答
745 浏览

azure - 带有 Windows Azure 移动服务的 Monodroid

我想将使用 Windows Azure 移动服务的身份验证添加到 MonoForAndroid 应用程序。Microsoft 有针对 Windows 8、iOS 和 Windows Phone 8 执行此操作的代码示例。Xamarin 已宣布对此提供支持,但我找不到任何涵盖身份验证的示例(大多数示例只是 TodoItem 数据访问,根本没有身份验证)

我是 Mono 和 Android 的新手,因此将 C# Win8 示例转换为 Mono for Android 并不像我想象的那么简单(他们甚至支持异步等待吗?)。

如果有人可以向我指出一个小代码示例(或博客文章)以将身份验证添加到适用于 android 应用程序的单声道,我将不胜感激。

0 投票
1 回答
1034 浏览

azure - 序列化对象 Azure 移动服务

我正在尝试将对象序列化到 Azure 移动服务。

该对象包含第二个对象的数组,该对象也应该被序列化。

我已经正确加载了两个表,并且可以在每个表中插入一个单独的项目。

但是,当我在表上为 objectA 调用 InsertAsync 方法时,我收到一个错误

关于我需要做些什么来解决这个问题有什么想法吗?