asp.net - WcfInstantFeedbackDataSource cannot read valid Data Service source -


I have tried to use 13.2.9 (located in Xpf.Core.Extensions) with DevExpress with Data Services ( Its source is a MongoDB)

I intend to use it with an asp.net page so that I can use the following code:

  ctx = new MongoContext (New URI ("http: // xxxxx.zzwebsites.net/MongoDataService.svc/")); Thread T = New Thread ((=) {Datas = New WCfInstantFeedbackDataSource () {KeyExpression = "_id", Query = (Data Service Service) ctx.test};}); T.SetApartmentState (ApartmentState.STA); T.Start ();   

I have WCF Data Services 5.6 installed.

My data source is a valid Atomix feed:

   & Lt; Entry & gt; & Lt; ID & gt; Http: //xxxxx.azurewebsites.net/MongoDataService.svc/test ('5347cc29fe4c65b466e604f9') & lt; / Id & gt; & Lt; Category term = "mangotext" scheme = "http://schemas.microsoft.com/aud/2007/08/dataservices/scheme/" gt; & Lt; Link rel = "edit" title = "test" href = "test ('5347cc29fe4c65b466e604f9')" /> & Lt; title / & gt; & Lt; Update & gt; 2014-04-24T09: 20: 11z & lt; / Update & gt; & Lt; Author & gt; & Lt; Name / & gt; & Lt; / Author & gt; & Lt; Content Type = "Application / XML" & gt; & Lt; M: Properties & gt; & Lt; d: db_id & gt; 5347cc29fe4c65b466e604f9 & lt; / D: db_id & gt; & Lt; D: ADAT & gt; 1234 & lt; / D: ADAT & gt; & Lt; / M: Properties & gt; & Lt; / Content & gt; & Lt; / Entry & gt; & Lt; / Feed & gt;   

On the query call, I get an exception:

Valid values ​​for the 'Properties' query are not.

What should I change?

Edit :

If I add this line:

  DataServiceContext = CTX    
  Thread T = New thread ((=) = & gt; (Data service service) ctx.test};}); t.SetApartmentState (ApartmentState.STA); T.Start ();   

I get this error:

'MongoDataServiceRef.MongoContext' property is not a valid value for 'DataServiceContext'.

This is strange because MongoContext is descended from DataServiceContext:

  public partial squares MongoContext: Global :: System.Data.Services.Client.DataServiceContext <  

ASPxGridView can not be used with any , I have to use WcfServerModeSource .

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -