Cassie Mod

Cassie Mod

  • NA
  • 488
  • 69.9k

In a valid data source must either be deployed IEnumerable I

Jan 16 2017 7:34 AM
HI guys, i get the following error when i want to add a resonse as a datasource.
  1.             var service = new TechnicServiceClient();  
  2.             var sessionId = Guid.Parse(HttpContext.Current.Session["BWSESSION"].ToString());  
  3.             var request = new GetScaEndpointsRequest  
  4.             {  
  5.                 UserId = Request.QueryString["userId"],  
  6.                 sessionId = sessionId,  
  7.                 requestId = _requestId,  
  8.                 requestUsername = null,  
  9.                 jSessionId = App.User.jSessionId  
  10.             };  
  11.   
  12.             var scaDeviceList = service.GetScaEndpoints(request);  
  13.   
  14.   
  15.             // bind to repeater.DataSource  
  16.             //AdditionalDevices.DataSource = App.GetAccessDeviceSca(_user); // get collection of objects  
  17.             AdditionalDevices.DataSource = scaDeviceList;  
  18.             AdditionalDevices.DataBind();  
  19.   
  20.   
  21. // the error I get:  
  22. Message = "There is an invalid data source used for additional devices. In a valid data source must either be deployed IEnumerable IListSource either."  
  23.   
  24. wtf am i doing wrong ?? thnx guys  
 
 

Answers (1)