×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Feb 2014
    Posts
    1

    Exclamation Use MixRadio API in background task (scheduled agent)

    Hey there,

    I took the MixRadio for Windows Phone 8 assembly from Nuget. I want to update my app's tile with a scheduled agent (background task). Unfortunately, when submitting my app to the windows phone store I get many error messages:

    Code:
    Validation errors
    
    2011: The background agent can’t use Microsoft.Phone.Controls.WebBrowser::Navigate, which assembly Nokia.Music.Wp8.dll is trying to use. Update your file and then try again.
     
    2011: The background agent can’t use Microsoft.Phone.Controls.WebBrowser::remove_NavigationFailed, which assembly Nokia.Music.Wp8.dll is trying to use. Update your file and then try again.
     
    2011: The background agent can’t use Microsoft.Phone.Controls.WebBrowser::remove_Navigating, which assembly Nokia.Music.Wp8.dll is trying to use. Update your file and then try again.
     
    2011: The background agent can’t use System.Windows.Navigation.NavigationFailedEventHandler::.ctor, which assembly Nokia.Music.Wp8.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 Nokia.Music.Wp8.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 MusicExplorer.Agent.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 Nokia.Music.Wp8.dll is trying to use. Update your file and then try again.
     
    2011: The background agent can’t use Microsoft.Phone.Controls.WebBrowser::add_NavigationFailed, which assembly Nokia.Music.Wp8.dll is trying to use. Update your file and then try again.
     
    2011: The background agent can’t use Microsoft.Phone.Controls.WebBrowser::set_IsScriptEnabled, which assembly Nokia.Music.Wp8.dll is trying to use. Update your file and then try again.
     
    2011: The background agent can’t use Microsoft.Phone.Scheduler.ScheduledActionService::Add, which assembly MusicExplorer.Agent.dll is trying to use. Update your file and then try again.
     
    2011: The background agent can’t use Microsoft.Phone.Controls.WebBrowser, which assembly Nokia.Music.Wp8.dll is trying to use. Update your file and then try again.
     
    2011: The background agent can’t use System.Windows.Navigation.NavigationFailedEventArgs, which assembly Nokia.Music.Wp8.dll is trying to use. Update your file and then try again.
     
    2011: The background agent can’t use System.Windows.Navigation.NavigationFailedEventHandler, which assembly Nokia.Music.Wp8.dll is trying to use. Update your file and then try again.
     
    2011: The background agent can’t use Microsoft.Phone.Controls.WebBrowser::add_Navigating, which assembly Nokia.Music.Wp8.dll is trying to use. Update your file and then try again.
     
    2011: The background agent can’t use System.Windows.Navigation.NavigationFailedEventArgs::get_Exception, which assembly Nokia.Music.Wp8.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 Nokia.Music.Wp8.dll is trying to use. Update your file and then try again.
     
    2011: The background agent can’t use System.Windows.MessageBox, which assembly MusicExplorer.Agent.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 Nokia.Music.Wp8.dll is trying to use. Update your file and then try again.
    I don't use the WebBrowser control in my background task - just the GetTopArtistsAsync method. Can I somehow exclude something to make it all work as intended? Is there another solution?

    Thanks in advance.

    Regards

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,763

    Re: Use MixRadio API in background task (scheduled agent)

    I know absolutely nothing about MixRadio, however checking the slideshow on http://www.slideshare.net/nokia-deve...dows-phone-api shows some possible browser-fallback codepath on slide #10. If such code fragments are present, that is probably enough to fail the test (as static analysis does not care if they are actually invoked or not).

  3. #3
    Nokia Developer Expert
    Join Date
    Feb 2014
    Posts
    29

    Re: Use MixRadio API in background task (scheduled agent)

    Those problems are from the user-authentication methods new in 3.x
    I suggest you reference the PCL assembly (Nokia.Music.PCL.dll) explicitly rather than the WP8 assembly that includes these problematic references.
    Regards,
    Steve

  4. #4
    Registered User
    Join Date
    Feb 2014
    Posts
    1

    MixRadio API on Background Agent

    Good evening, I'm having a trouble with the Nokia.Music API on a background agent. Basically i want to display some artist info in my live tiles so i used the MixRadio API to retrieve artist's info. It's all working but when i send my application on the Windows Phone Developer Site, i get some errors:

    Code:
    2011: The background agent can’t use Microsoft.Phone.Tasks.WebBrowserTask::set_Uri, which assembly Nokia.Music.Wp8.dll is trying to use. Update your file and then try again.
    2011: The background agent can’t use System.Windows.Navigation.NavigationFailedEventHandler, which assembly Nokia.Music.Wp8.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 Nokia.Music.Wp8.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 Nokia.Music.Wp8.dll is trying to use. Update your file and then try again.
    2011: The background agent can’t use Microsoft.Phone.Controls.WebBrowser::Navigate, which assembly Nokia.Music.Wp8.dll is trying to use. Update your file and then try again.
    2011: The background agent can’t use Microsoft.Phone.Controls.WebBrowser, which assembly Nokia.Music.Wp8.dll is trying to use. Update your file and then try again.
    2011: The background agent can’t use Microsoft.Phone.Controls.WebBrowser::set_IsScriptEnabled, which assembly Nokia.Music.Wp8.dll is trying to use. Update your file and then try again.
    2011: The background agent can’t use System.Windows.Navigation.NavigationFailedEventArgs, which assembly Nokia.Music.Wp8.dll is trying to use. Update your file and then try again.
    2011: The background agent can’t use System.Windows.Navigation.NavigationFailedEventArgs::get_Exception, which assembly Nokia.Music.Wp8.dll is trying to use. Update your file and then try again.
    2011: The background agent can’t use System.Windows.Navigation.NavigationFailedEventHandler::.ctor, which assembly Nokia.Music.Wp8.dll is trying to use. Update your file and then try again.
    2011: The background agent can’t use Microsoft.Phone.Controls.WebBrowser::remove_NavigationFailed, which assembly Nokia.Music.Wp8.dll is trying to use. Update your file and then try again.
    2011: The background agent can’t use Microsoft.Phone.Controls.WebBrowser::add_Navigating, which assembly Nokia.Music.Wp8.dll is trying to use. Update your file and then try again.
    2011: The background agent can’t use Microsoft.Phone.Controls.WebBrowser::add_NavigationFailed, which assembly Nokia.Music.Wp8.dll is trying to use. Update your file and then try again.
    2011: The background agent can’t use Microsoft.Phone.Controls.WebBrowser::remove_Navigating, which assembly Nokia.Music.Wp8.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 Nokia.Music.Wp8.dll is trying to use. Update your file and then try again.
    Why i get this error? Is there any way to fix it?
    Thanks in advance

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,763

    Re: MixRadio API on Background Agent

    Hi, your question is merged to an older similar discussion now.

Similar Threads

  1. Replies: 0
    Last Post: 2008-08-07, 16:59
  2. scheduled HTTP requests in background
    By xfyre24 in forum Symbian
    Replies: 5
    Last Post: 2008-03-03, 19:54
  3. Agent appplication with should run in background
    By alonish in forum Mobile Java General
    Replies: 8
    Last Post: 2007-01-08, 15:50
  4. Scheduled Timer task and Thread
    By shahzad73 in forum Mobile Java General
    Replies: 2
    Last Post: 2003-04-03, 18:18

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×