HttpResponseException thrown while using InsertAsync app in .NET Backend Mobile service

Firstly, I had this problem when RequestStatus value can not be transferred from the client to the Mobile Service during InsertAsync, which will be processed with a value of zero (the client - the mobile app) enter image description here (server - Azure.NET Backend Mobile Service) enter image description here Vo second, I also tried changing its value in the debugger for processing, but HttpResponseException was thrown anyway. Detailed error message:

{"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

      

In addition, here's what I caught in Fiddler

enter image description here

+3


source to share


1 answer


This issue is resolved only by removing the [DefaultValue ("Available")] Annotation in the Azure Mobile Service.



+1


source







All Articles