CRM 2013 Online does not support System.Net.Http? RRS feed

  • Question

  • Hi,

    I am debugging a CRM 2013 Online plugin.  I use the following code and try to call an external third-party restful API to retrieve their data and display the data in online Account form.  However, the process crash at the following line:

    using (var client = new HttpClient())
                        client.DefaultRequestHeaders.Authorization = ServiceNowAuthorization();
                        //Synchronous call (done by using .Result)
                      =>  var response = client.GetAsync(url).Result; <=

    Business Process Error: '...Could not load file or assembly 'System.Net.Http, Version'

    System.Net.Http is a framework 4.0 dll, does CRM 2013 Online supports Framework 4.0?

    Friday, January 9, 2015 10:06 PM

All replies