We use RadDomainDataSource in our Silverlight project. After 1 year idle we get back to the project and found that it doesn't compile. The error message is:
Could not load file or assembly 'OpenRiaServices.DomainServices.Client, Version=2.0.5.0, Culture=neutral, PublicKeyToken=2e0b7ccb1ae5b4c8' or one of its dependencies. The system cannot find the file specified.
The project uses Telerik.Windows.Controls.DomainServices.OpenRia.dll which in turn refers to OpenRiaServices.DomainServices.Client version 2.0.5.0, but there is no such library in either location on PC.
We upgraded the project to the latest "UI for Silverlight R1 2017" but with no luck - it still requires 2.0.5.0 version of OpenRiaServices.DomainServices.Client.
The XAML pattern that causes the error is:
<
telerik:RadDomainDataSource
x:Name
=
"qryER"
AutoLoad
=
"False"
QueryName
=
"GetExamRequestOne"
LoadedData
=
"qryER_LoadedData"
>
<
telerik:RadDomainDataSource.DomainContext
>
<
e:MCMEDDomainContext
/>
</
telerik:RadDomainDataSource.DomainContext
>
<
telerik:RadDomainDataSource.QueryParameters
>
<
telerik:QueryParameter
ParameterName
=
"examReqID"
/>
</
telerik:RadDomainDataSource.QueryParameters
>
</
telerik:RadDomainDataSource
>
Could you give us this library or tell where we can download them?
Hi.
I can build my Silverlight project using OpenRiaServices.Client.Core v4.4.0.3 and Telerik UI for Silverlight 5 2014.3.1326.
However, if I upgrade the OpenRiaServices.Client.Core NuGet packages to v4.5.0+, then I get the following build error:
"C:\MyProject\MyView.xaml : error : Cannot resolve reference assemblies. Please check the reference assemblies. Could not load file or assembly 'OpenRiaServices.DomainServices.Client, Version=2.0.5.0, Culture=neutral, PublicKeyToken=2e0b7ccb1ae5b4c8' or one of its dependencies. The system cannot find the file specified."
This is because the new OpenRiaServices.Client.Core v4.5 NuGet packages reference OpenRiaServices.DomainServices.Client, Version=4.0.0.0, but "Telerik.Windows.Controls.DomainServices.OpenRia.dll" references OpenRiaServices.DomainServices.Client, Version=2.0.5.0.
Is it possible to provide an updated "Telerik.Windows.Controls.DomainServices.OpenRia.dll" which references OpenRiaServices.DomainServices.Client, Version=4.0.0.0?
Thank you.
I have a DataForm and a GridView binding to two different DomainDataSources(use same DomainContext).
The DataForm.CurrentItem's navigation property able to modify from GridView.SelectedItem.
The first load GridView is fine,when I reload,the GridView's DomainDataSource didn't load(same query).
Even LoadingData not raised, so set e.LoadBehavior = LoadBehavior.RefreshCurrent is invalid.
<
Grid.Resources
>
<
telerik:RadDomainDataSource
x:Key
=
"ddsEntitlements"
AutoLoad
=
"True"
QueryName
=
"GetAllowancesForPersonAndType"
>
<
telerik:RadDomainDataSource.QueryParameters
>
<
telerik:QueryParameter
ParameterName
=
"personguid"
Value
=
"{Binding personguid}"
/>
<
telerik:QueryParameter
ParameterName
=
"absencetype"
Value
=
"d859e02e-eaec-402e-ba21-6ebff3e66240"
/>
</
telerik:RadDomainDataSource.QueryParameters
>
<
telerik:RadDomainDataSource.DomainContext
>
<
e:AppDomainContext
/>
</
telerik:RadDomainDataSource.DomainContext
>
</
telerik:RadDomainDataSource
>
</
Grid.Resources
>
WHERE ([Extent1].[person] = @p__linq__0) AND ([Extent2].[absencetype] = @p__linq__1)',N'@p__linq__0 uniqueidentifier,@p__linq__1 uniqueidentifier',@p__linq__0='0156C084-9DD9-4301-95D0-9E8EFE3ECCC7',@p__linq__1='00000000-0000-0000-0000-000000000000'
public
void
RemoveOrderFromPeople(Order order)
{
foreach
(Person person
in
People.Where(p => p.Orders.Contains(order)))
{
person.Orders.Remove(order);
}
People.SubmitChanges();
}