在 .NET 后端移动服务的 InsertAsync 期间抛出 HttpResponseException

HttpResponseException thrown during InsertAsync at .NET Backend Mobile service

首先,我遇到了 RequestStatus 的值无法在 InsertAsync 期间从客户端传递到移动服务的问题,这将在 null 中处理 (客户端 - 移动应用程序) (服务器 - Azure .NET 后端移动服务) 其次,我也曾尝试在调试器中更改它的值以便处理,但仍然抛出 HttpResponseException。详细错误信息如下:

{"Processing of the HTTP request resulted in an exception. Please see the HTTP response returned by the 'Response' property of this exception for details."}

at Microsoft.WindowsAzure.Mobile.Service.TableController`1.<InsertAsync>d__3.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.TaskAwaiter`1.GetResult()
   at EasyPark.MobileService.Controllers.RequestController.<PostRequest>d__0.MoveNext() in c:\Users\Chris\Documents\GitHub\EasyPark\EasyPark.MobileService\Controllers\RequestController.cs:line 45

另外,这是我在 Fiddler 中捕获的内容

只需删除 Azure 移动服务中的 [DefaultValue("Available")] 注释即可解决此问题。