ios - Azure Mobile Service Offline Data Sync - Error on pullWithQuery -


i using azure mobile service backend. data structure implemented , tested crud calls using fiddler. seems right.

then implemented offline data synchronization client ios device. btw followed tutorial: https://azure.microsoft.com/en-gb/documentation/articles/app-service-mobile-ios-get-started-offline-data-preview/

my problem when try synchronize data using pullwithquery function. errror:

2015-08-19 11:36:12.525 hykso[1820:330268] logged in facebook:10155931659265500 2015-08-19 11:36:30.285 hykso[1820:330522] error error domain=com.microsoft.windowsazuremobileservices.errordomain code=-1302 "{"message":"an error has occurred."}" userinfo=0x14671c30 {nslocalizeddescription={"message":"an error has occurred."}, com.microsoft.windowsazuremobileservices.errorresponsekey=<nshttpurlresponse: 0x14584de0> { url: https://hyksomobileservice.azure-mobile.net/tables/athlete?$top=50&__includedeleted=true&$skip=0&__systemproperties=__createdat%2c__updatedat%2c__deleted%2c__version } { status code: 500, headers {     "cache-control" = "no-cache";     "content-length" = 36;     "content-type" = "application/json; charset=utf-8";     date = "wed, 19 aug 2015 15:36:28 gmt";     expires = 0;     pragma = "no-cache";     server = "microsoft-iis/8.0";     "x-powered-by" = "asp.net"; } }, com.microsoft.windowsazuremobileservices.errorrequestkey=<nsmutableurlrequest: 0x14657830> { url: https://hyksomobileservice.azure-mobile.net/tables/athlete?$top=50&__includedeleted=true&$skip=0&__systemproperties=__createdat%2c__updatedat%2c__deleted%2c__version }} 

i tested same call using fiddler , message:

exceptionmessage=the specified type member 'version' not supported in linq entities. initializers, entity members, , entity navigation properties supported. 

does have advice give me in order debug this? thank you!

(first off, make sure use mobile services topic, not mobile apps topic. article similar, that's not issue.)

the error looks strange, , points wrong server setup. client sending query asking system properties __createdat, __updatedat, __deleted, , __version, somehow "version" part being translated invalid linq query. if remove ms_version column core data model, version won't requested, can't conflict handling.

based on ef error message, must using .net backend. happens when test default todoitem type that's in server project? data class needs extend entitydata ensure mapped correctly. (you can use itabledata, that's more advanced.)

in terms of debugging, can run server project locally on iis express , set breakpoint after hitting endpoint via fiddler. can use remote debugging go actual remote service.

for tutorials on this, see:


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -