Silverlight 4 RIA datacontext error if I return less than 2 records -


Hey there, I do not know what is the reason, but I get an error when my riya service 2 Less items are

My domain data source looks like this:

  & lt; RiaControls: DomainDataSource AutoLoad = "True" X: Name = "dsEmployee" Loaded Data = "dsEmployee_LoadedData" QueryName = "GetEmployees" & gt; & Lt; RiaControls: DomainDataSource.DomainContext & gt; & Lt; My: TestDomainContext / & gt; & Lt; / RiaControls: DomainDataSource.DomainContext & gt; & Lt; / RiaControls: DomainDataSource & gt;  

Which is bound to a list box like this:

  & lt; ListBox x: name = "lstEmployees" item source = "{binding element name = dsEmployee, however, when I run the application, I get this error: 

System ServicesModel.domainServices. Client.Demon operation exception: Unexpected end of the 'getEmployees' file for the load operation failed. The following elements are not closed: IsEnabled, Employee, Root Results, GetEmployeesResult, GetEmployeesResponse ---> System.Xml.XmlException: File Unexpected end System services, systems, systems, systems, systems, systems, systems, systems, services, P> systems, service domains, domain services, clients. Default client.andquite (IAsyncResult asyncResult)

System.ServiceModel.DomainServices.Client.DomainContext.CompleteLoad (IAsyncResult asyncResult)

- - End of Internal Exception Stack Trace ---

Does anyone have the same Was there a problem? Am I doing something wrong here?

"post-text" itemprop = "text">

This is done with async server verification The problem is to see because it has enough time to complete 't I do not think it is due to any cause were wrong by you.

Here is some discussion on this issue and some workings. Do you system Using the web, if it seems that it should not be used on client side code


Comments