MAQ*_*MAQ 0 azure mvvmcross xamarin azure-mobile-services
我正在使用带有.net后端的Azure移动服务,MvvmCross使用基于Xamarin Pcl的解决方案.当我从Azure移动服务提供的默认浏览器界面以交互方式运行时,该服务会返回结果.我也在使用离线数据同步功能.我可以将数据推送到服务器并且它可以工作,但现在当我尝试从服务器提取数据时.
{Microsoft.WindowsAzure.MobileServices.MobileServiceInvalidOperationException:无法完成请求.()at Microsoft.WindowsAzure.MobileServices.MobileServiceHttpClient.d__18.MoveNext()---从抛出异常的先前位置开始的堆栈跟踪结束---在System的System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务). Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务task)在System.Runtime.CompilerServices.TaskAwaiter.GetResult()
在Microsoft.WindowsAzure.MobileServices.MobileServiceHttpClient.d__1d.MoveNext()---从以前的位置,其中的例外是堆栈跟踪的结尾抛出---在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(工作任务)在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(工作任务)在System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at Microsoft.WindowsAzure.MobileServices.MobileServiceHttpClient.<RequestAsync>d__4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()在Microsoft.WindowsAzure. MobileServices.MobileServiceTable.d__f.MoveNext()---从抛出异常的先前位置开始的堆栈跟踪结束---在System.Runtime.CompilerServices.TaskAwaiter.ThrowForN 的onSuccess(任务task)在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(工作任务)在System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at Microsoft.WindowsAzure.MobileServices.MobileServiceTable.<ReadAsync>d__7.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()在Microsoft.WindowsAzure.MobileServices.Sync.PullAction.d__0.MoveNext() - -从以前的位置,其中的例外是在System.Runtime.CompilerServices抛出---在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(工作任务)在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务task)堆栈跟踪的结尾. TaskAwaiter.GetResult()
在Microsoft.WindowsAzure.MobileServices.Sync.TableAction.d__0.MoveNext()---从先前的位置堆栈跟踪,其中引发异常---在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess结束(任务任务)
位于Microsoft.WindowsAzure.MobileServices.Sync.Mobil的System.Runtime.CompilerServices.TaskAwaiter.GetResult()的System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)eServiceSyncContext.d__3b.MoveNext()---从先前的位置堆栈跟踪其中的例外是在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务task)抛出---在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(工作任务)结束at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at Microsoft.WindowsAzure.MobileServices.Sync.MobileServiceSyncContext.d__27.MoveNext()---从抛出异常的上一个位置的堆栈跟踪结束---在System.Runtime. CompilerServices.TaskAwaiter.ThrowForNonSuccess(任务任务),位于System.Runtime.CompilerServices.TaskAwaiter.GetResult()的System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务),
位于AgLiveMobile.Core.Services.EmployeeService.d__4.MoveNext()}
我甚至调试了从客户端到服务器的服务,结果是来了,但我无法知道为什么会发生这种情况.我在我的Windows Phone 8.1设备上进行了Wifi连接测试.
请帮忙.
MAQ*_*MAQ 10
在VS的异常对话框中进一步分析http响应之后.实际错误是404未找到.然后进一步调试问题,结果是Azure移动服务的应用程序URL应该是https而不是http
如果产品团队能够找到这一点并给出正确的错误消息,这将是一件好事,这可以节省大量时间并且开发人员不会感到沮丧.
| 归档时间: |
|
| 查看次数: |
2453 次 |
| 最近记录: |