DataPortal.Fetch failed (Invalid operation - fetch not allowed)

DataPortal.Fetch failed (Invalid operation - fetch not allowed)

Old forum URL: forums.lhotka.net/forums/t/11956.aspx


mayurimalgave posted on Friday, April 26, 2013

I have created Dal, DalMock, Library,Library.Sl, Library.WinRt, DalEF, WcfAppServer projects using CSLA. I have also developed WinRTUI & SilverlightUI projects. In WinRTUI project,I wrote the following code in the MainPage.xaml.cs.

 

 

 

 

 

public

 

sealed partial class MainPage : Page

{

 

 

public MainPage()

{

 

 

this.InitializeComponent();

GetList();

}

 

 

private async void GetList()

{

 

 

this.grid1.ItemsSource = await CompanyList.GetCompanyListAsync();

}

 

 

protected override void OnNavigatedTo(NavigationEventArgs e)

{

}

}

But I am getting an error as DataPortal.Fetch failed (Invalid operation - fetch not allowed) in GetList().

Any suggestions?

Copyright (c) Marimer LLC