Has the new OData Client Library broken the use of Reactive Framework?‏

Oct 30, 2010 at 1:41 PM

I have been developing my baseball stats Win Phone 7 app with MVVM and Rx. I moved in the new updated OData client library and now I am getting "This operation is only supported on collections that are being tracked." errors when I am doing any Async loads. Looks like the new client is expecting developers to use the DataServiceCollection<T> like the sample application on the project site. Any reason why this has been changed where you have to have the LoadCompleted assigned?

I am trying to use and return an IObservable.FromEvent<LoadCompletedEventArgs> for when my data gets loaded. A great example is here showing how I guess you could use Rx with WP7 in the past.

http://blogs.msdn.com/b/johnalioto/archive/2010/09/22/10066508.aspx

Chris Woodruff aka “Woody”
Software Developer, Solution Architect, Blogger, Podcaster, Thinker
Tel: 616-724-6885 | Web: http://www.chriswoodruff.com
Visit our podcast: http://deepfriedbytes.com

Oct 31, 2010 at 2:39 PM

I found my issue and it was from not generating my Entity classes with DataSvcUtil.exe correctly. I was not using the /DataServiceCollection argument when calling DataSvcUtil.exe.

Dec 6, 2010 at 3:23 PM

I am also recieving the error: This operation is only supported on collections that are being tracked.
However, I am alredy using the /DataServiceCollection argument.  DataSvcUtil /uri:http://odata.netflix.com/catalog /dataservicecollection /version:2.0 /out:NetflixCatalog.cs

Any thoughts?

Dec 6, 2010 at 6:08 PM

Your call and arguments for DataSvcUtil look fine. Were you ever using a file from DataSvcUtil before that did not get created with the /DataServiceCollection argument? I would look in your NetflicCatalog.cs file and make sure you have the DataServiceCollection<T> references.