locked
DataServiceQuery from Outlook RRS feed

  • Question

  • Hi All, I have a piece of code working like a charm in CRM 2011:

     

    var results = (DataServiceQuery<Appointment>)result.AsyncState;
    var eventsCollection = new DataServiceCollection<Appointment>(results.EndExecute(result)).ToList<Appointment>();

    Nothing new here, this is an example from the SDK.

    My problem is when I try to execute the same query in a Silverlight control from Outlook. I get this exception:

     

     

    Version string portion was too short or too long.
    
    
    base {System.SystemException} = {System.InvalidOperationException: Method may only be called on a Type for which Type.IsGenericParameter is true.
     at System.RuntimeType.get_DeclaringMethod()}



    Any help?
    Tuesday, March 1, 2011 5:45 PM