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

The background agent can’t use Telerik.Windows.Controls.Chart.dll

10 Answers 58 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
JAVIER
Top achievements
Rank 1
JAVIER asked on 09 Apr 2014, 03:44 PM
Hi,

I'm trying to publish an app in Windows Phone Store, but my app has the following error:

"The background agent can’t use Microsoft.Phone.Controls.PhoneApplicationPage, which assembly Telerik.Windows.Controls.Chart.dll is trying to use. Update your file and then try again."


I'm using Telerik.Windows.Controls.Chart.dll library in the background agent because I need to update a custom tile that contains a chart.

Is it possible to update tiles with charts from the background agent?

Thanks.

10 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 14 Apr 2014, 07:53 AM
Hello Javier,

Thanks for writing.
Currently this is not possible because the chart needs to know the orientation of its parent page. This is because of a bug in the Silverlight framework. The RenderSize property of the visual elements returns the wrong size when the orientation of the page changes.

I have an idea how to fix this but at the moment you can't use the chart in a background agent. I will try an alternative solution and will let you know if it works or not. If it works, we will include the fix in our next internal build so that you can download and use it as soon as possible.

Please write again if you have other questions.

Regards,
Victor
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
JAVIER
Top achievements
Rank 1
answered on 21 Apr 2014, 09:27 AM
I will wait for the solution,

Thanks Victor.

0
Victor
Telerik team
answered on 24 Apr 2014, 10:36 AM
Hello Javier,

We will be releasing the internal build tomorrow or on Monday at the latest. Stay tuned :)

Regards,
Victor
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Victor
Telerik team
answered on 30 Apr 2014, 10:12 AM
Hello Javier,

I want to inform you that I removed the PhoneApplicationPage reference from the chart project. We will be publishing the internal build for download shortly. I will let you know as soon as it is available on our website.

Regards,
Victor
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
JAVIER
Top achievements
Rank 1
answered on 30 Apr 2014, 12:27 PM
Hi Victor

I'm afraid the solution is more complicated. 

Telerik.Windows.Controls.Chart.dll reference Telerik.Windows.Controls.Primitives.dll and Telerik.Windows.Core.dll, and these libraries are using forbidden controls for backgrounds agents.

All errors reported in the Store using Telerik.Windows.Controls.Chart.dll library:

2011: The background agent
can’t use Microsoft.Devices.VibrateController::get_Default, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Tasks.MarketplaceDetailTask::Show, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use
Microsoft.Phone.Controls.PhoneApplicationPage::add_OrientationChanged, which
assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update your
file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.ApplicationBar::set_BackgroundColor, which
assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update your
file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.ApplicationBar, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.IApplicationBar::get_Opacity, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.IApplicationBar::set_IsMenuEnabled, which
assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update your
file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Tasks.WebBrowserTask::Show, which assembly
Telerik.Windows.Core.dll is trying to use. Update your file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.IApplicationBar::get_Buttons, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.IApplicationBar, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Controls.PhoneApplicationPage::get_ApplicationBar,
which assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update
your file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.ApplicationBarIconButton::get_IconUri, which
assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update your
file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.ApplicationBarIconButton::set_Text, which
assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update your
file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Controls.PhoneApplicationPage, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.ApplicationBarIconButton::.ctor, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Controls.PhoneApplicationFrame, which assembly
Telerik.Windows.Core.dll is trying to use. Update your file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Tasks.EmailComposeTask::get_Body, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Controls.PhoneApplicationPage::remove_BackKeyPress,
which assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update
your file and then try again.

2011: The background agent
can’t use System.Windows.Navigation.NavigationService::GoBack, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Controls.PhoneApplicationFrame::.ctor, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.SystemTray, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use System.Windows.Navigation.NavigationService::get_BackStack, which
assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update your
file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.ApplicationBar::set_IsVisible, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.IApplicationBar::get_IsMenuEnabled, which
assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update your
file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Tasks.EmailComposeTask::Show, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.ApplicationBarIconButton::add_Click, which
assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update your
file and then try again.

2011: The background agent
can’t use System.Windows.MessageBox::Show, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Tasks.MarketplaceDetailTask::.ctor, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use System.Windows.Navigation.NavigationService, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Controls.PhoneApplicationFrame, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Tasks.MarketplaceReviewTask::.ctor, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.ShellTile::Create, which assembly
Telerik.Windows.Core.dll is trying to use. Update your file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.SystemTray::get_Opacity, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Controls.PhoneApplicationPage::get_Orientation, which
assembly Telerik.Windows.Controls.Chart.dll is trying to use. Update your file
and then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.ApplicationBarIconButton::get_Text, which
assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update your
file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.ApplicationBarIconButton, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use System.Windows.MessageBox, which assembly Telerik.Windows.Core.dll is
trying to use. Update your file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Tasks.EmailComposeTask::set_To, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Controls.PhoneApplicationPage::add_BackKeyPress,
which assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update
your file and then try again.

2011: The background agent
can’t use System.Windows.Navigation.JournalEntry::get_Source, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.ApplicationBar::get_Buttons, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use System.Windows.MessageBox::Show, which assembly
Telerik.Windows.Core.dll is trying to use. Update your file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Tasks.WebBrowserTask, which assembly
Telerik.Windows.Core.dll is trying to use. Update your file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Tasks.MarketplaceReviewTask, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.ApplicationBar::set_ForegroundColor, which
assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update your
file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Controls.PhoneApplicationPage, which assembly
Telerik.Windows.Controls.Chart.dll is trying to use. Update your file and then
try again.

2011: The background agent
can’t use Microsoft.Phone.Tasks.EmailComposeTask::set_Subject, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use
Microsoft.Phone.Controls.PhoneApplicationFrame::add_OrientationChanged, which
assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update your
file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.ApplicationBar::.ctor, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Controls.PhoneApplicationPage::get_Orientation, which
assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update your
file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Controls.PhoneApplicationPage::set_ApplicationBar,
which assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update
your file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.ApplicationBarIconButton::set_IconUri, which
assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update your
file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Tasks.EmailComposeTask::.ctor, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use System.Windows.MessageBox, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Tasks.WebBrowserTask::set_Uri, which assembly
Telerik.Windows.Core.dll is trying to use. Update your file and then try again.

2011: The background agent
can’t use Microsoft.Devices.VibrateController, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.ApplicationBarIconButton::set_IsEnabled, which
assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update your
file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Controls.PhoneApplicationFrame::get_Orientation,
which assembly Telerik.Windows.Core.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Controls.PhoneApplicationFrame::get_Orientation,
which assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update
your file and then try again.

2011: The background agent
can’t use System.Windows.Navigation.NavigationService::get_Source, which
assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update your
file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.ApplicationBarIconButton::get_IsEnabled, which
assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update your
file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Tasks.MarketplaceReviewTask::Show, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.SystemTray::get_IsVisible, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Controls.PhoneApplicationFrame::get_BackStack, which
assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update your
file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.ApplicationBar::set_Opacity, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Tasks.EmailComposeTask, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Controls.PhoneApplicationFrame::OnApplyTemplate,
which assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update
your file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Tasks.EmailComposeTask::set_Body, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Controls.PhoneApplicationPage::remove_OrientationChanged,
which assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update
your file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Tasks.MarketplaceDetailTask, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.ApplicationBarIconButton::remove_Click, which
assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update your
file and then try again.

2011: The background agent
can’t use System.Windows.Navigation.NavigationService::get_CanGoBack, which
assembly Telerik.Windows.Controls.Primitives.dll is trying to use. Update your
file and then try again.

2011: The background agent
can’t use Microsoft.Phone.Shell.IApplicationBar::get_IsVisible, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent
can’t use Microsoft.Phone.Tasks.WebBrowserTask::.ctor, which assembly Telerik.Windows.Core.dll
is trying to use. Update your file and then try again.

2011: The background agent
can’t use Microsoft.Devices.VibrateController::Start, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.

2011: The background agent can’t use
System.Windows.Navigation.JournalEntry, which assembly
Telerik.Windows.Controls.Primitives.dll is trying to use. Update your file and
then try again.







0
Victor
Telerik team
answered on 07 May 2014, 07:23 AM
Hi Javier,

Yes, we have a lot of dependencies in the base assemblies. Currently we have an idea and it is to completely decouple the chart from the base assemblies however this will include some unwanted braking changes. The majority of troublesome dependencies are inside the chart behaviors (pan/zoom, tooltip etc). If we separate the behaviors in a separate assembly things would work, however, when developers update their apps they will need to add a reference to a new assembly if they are not using it and there will also be breaking changes in the code itself.

While drawing charts from a background agent is indeed a great feature we are not yet sure if is worth it since very few people have tried to use the chart like this so far.

Thank you for understanding.

Regards,
Victor
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
goodbar
Top achievements
Rank 2
answered on 27 Sep 2014, 04:09 AM
I am attempting to do something similar, but rather than use the charts dll I am referencing the Telerik.Windows.Controls.DataVisualization.dll and the Primitives.dll.

Has anything changed with the ability to use these dlls in a background agent?
0
Ves
Telerik team
answered on 01 Oct 2014, 03:09 PM
Hello,

I am afraid we have not made any changes regarding background agent support. Please, accept our apologies for not being able to meet your requirements.

Best regards,
Ves
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Richard
Top achievements
Rank 1
answered on 09 Dec 2014, 04:27 PM
Hi Devs at Telerik,

I too am running into problems using the Telerik chart controls in my live tile. Having a chart control and the RadFlipTileData classes available in a background agent friendly library is a very powerful and useful feature to make Live Tiles in Win Phone unique and useful.

If I may make a suggestion: Since Live Tile displays are static and simple (i.e. no pan and zoom and other complex features) create a separate chart control (and RadFlipData class if necessary) just for use in live tiles in conjunction with background agents. This separate chart control will be a stripped down version of the chart control with no pan zoom etc - it will only contain the most basic elements of the chart control specifically for live tile use.

The RadFlipData control will allow us to create custom layouts for our live tiles in which we can include the new live tile chart control. This will not introduce any breaking changes in existing libraries.

This would be very useful and quite frankly is a huge limitation right now for my app. My app has a nice custom live tile with a chart control that is created by the main app which users love and is one of the main features of the app. Currently I cannot use a background agent to update the live tile which is a huge limitation.

Thanks for your consideration. 
0
Tsvyatko
Telerik team
answered on 12 Dec 2014, 02:44 PM
Hello Javier,

Thank you for contacting us! Currently we do not have plans to extend the Chart control in that direction. However, it seems like a good feature, so I will log it as feature request, to consider it in future releases.

Thank you for your suggestion I have also update your telerik points accordingly.

Regards,
Tsvyatko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Chart
Asked by
JAVIER
Top achievements
Rank 1
Answers by
Victor
Telerik team
JAVIER
Top achievements
Rank 1
goodbar
Top achievements
Rank 2
Ves
Telerik team
Richard
Top achievements
Rank 1
Tsvyatko
Telerik team
Share this question
or