This is a migrated thread and some comments may be shown as answers.

Problem in loading RadComboBox using the RadDataDomainContext.

3 Answers 108 Views
DomainDataSource
This is a migrated thread and some comments may be shown as answers.
SivaPrasad Bevara
Top achievements
Rank 1
SivaPrasad Bevara asked on 29 Mar 2011, 12:01 PM
Hi,

I am facing the following problem while trying to load the RadComboBox using the RadDomainDataSource.

[Arg_NULL ReferenceException]
Arguments.
Debugging Resource strings are unavailable.Often the key and arguments provide sufficient information to diagnose the problem.

I am getting this error very frequently when I run the application from the local web server (directly from browser). some times it is loading the data properly.

If I run the application in the debug mode, I am not getting this frequently. Following are the details which are taken while debugging the application.

Object reference not set to an instance of an object. 

at PerformanceManagersUI.Views.TransactionDetail.SecuritySymbolDataSource_LoadedData(Object sender, LoadedDataEventArgs e)
   at Telerik.Windows.Controls.RadDomainDataSource.OnLoadedData(LoadedDataEventArgs args)
   at Telerik.Windows.Controls.RadDomainDataSource.OnViewLoadedData(Object sender, LoadedDataEventArgs e)
   at Telerik.Windows.Data.QueryableDomainServiceCollectionViewBase.OnLoadedData(LoadedDataEventArgs args)
   at Telerik.Windows.Data.QueryableDomainServiceCollectionView`1.OnDomainServiceCollectionLoadCompleted(Object sender, LoadOperationCompletedEventArgs`1 e)
   at Telerik.Windows.Controls.DomainServices.DomainServiceCollection`1.OnLoadCompleted(LoadOperationCompletedEventArgs`1 args)
   at Telerik.Windows.Controls.DomainServices.DomainServiceCollection`1.OnLoadOperationCompleted(LoadOperation`1 loadOperation)
   at System.ServiceModel.DomainServices.Client.DomainContext.<>c__DisplayClass13`1.<Load>b__11(LoadOperation lo)
   at System.ServiceModel.DomainServices.Client.LoadOperation.<>c__DisplayClass4`1.<Create>b__0(LoadOperation`1 arg)
   at System.ServiceModel.DomainServices.Client.LoadOperation`1.InvokeCompleteAction()
   at System.ServiceModel.DomainServices.Client.OperationBase.Complete(Object result)
   at System.ServiceModel.DomainServices.Client.LoadOperation.Complete(DomainClientResult result)
   at System.ServiceModel.DomainServices.Client.DomainContext.CompleteLoad(IAsyncResult asyncResult)
   at System.ServiceModel.DomainServices.Client.DomainContext.<>c__DisplayClass1b.<Load>b__17(Object )


FYI: I am using the RadComboBox in DataForm control and loading DatForm and RadComboBox with 2 different RadDomainDtaSources.

Please help

Regards,
SivaPrasad.B

3 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 29 Mar 2011, 12:19 PM
Hi SivaPrasad Bevara,

Why don't you use your debugger and actually see which object is null?

It is some object in SecuritySymbolDataSource_LoadedData event handler, but only you can see what it is.

Only you know what you have written in the event handler and what is null.

Does this make any sense?

Regards,
Ross
the Telerik team
0
SivaPrasad Bevara
Top achievements
Rank 1
answered on 29 Mar 2011, 06:13 PM
Hi
Thank you for your quick response.
I tried to debug there. But it is not going to the LoadedData event handler.
I got this error details in the Application_UnhandledException event in the App.xaml.cs
In the LoadedData event handler I am using the following code.
If(e.Entities != null)
{
 Combobox.ItemsSource = e.Entities;
}

Regards,
SivaPrasad.B

0
SivaPrasad Bevara
Top achievements
Rank 1
answered on 30 Mar 2011, 06:43 AM
It is working now.

Thank you for your suggestion. The combobox in the DataForm is returning null.

Regards,
SivaPrasad.B
Tags
DomainDataSource
Asked by
SivaPrasad Bevara
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
SivaPrasad Bevara
Top achievements
Rank 1
Share this question
or