locked
Failed AppCert Suspension Test

    Question

  • I'm getting the following failure from AppCert

    Application Error: Application Suspend was not detected for application App.  This could be because your application failed to suspend correctly. Please consider re-running the test avoid interacting with the application while tests are running.

    I have a few lines in my App_Suspending event but I still get the same failure message even if I take the code out of the event.  Any ideas??

            async void App_Suspending(object sender, SuspendingEventArgs e)
            {
                var deferral = e.SuspendingOperation.GetDeferral();
                await SuspensionManager.SaveAsync();
                ClearTempFolder();
                await Inspire.Data.Database.SuspendDatabaseAsync();
                deferral.Complete();
            }


    Thursday, June 28, 2012 1:37 AM

All replies

  • Hi T-Roth,

    could you send me the log files after a failed run from your %userprofile%\AppData\Local\Microsoft\AppCertKit?  Please send to mikewong at microsoft.com.

    Also is this with the RC or beta version of the ACK?

    much appreciated,

    mike

    Friday, June 29, 2012 10:05 PM
    Moderator
  • Hi,

    I'm also seeing this, it appears to be when the suspend is called when my viewmodel is in the middle of a load. 

    FeedItem fi = await new FeedItem("http://a-feed.xml").GetFeedItems(3);
    

    if the suspend call is made while the app is awaiting the response it appears to fail. Do you have anything similar?

    Sunday, July 8, 2012 9:40 PM