首先,我遇到了这样的问题,即在InsertAsync期间RequestStatus的值无法从客户端传递到Mobile Service,这将在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中捕获的内容
答案 0 :(得分:1)
只需删除Azure Mobile Service中的[DefaultValue(&#34; Available&#34;)]注释即可解决问题。