1

Hi this is my 1st question asked:

I've got a WinRT app (C#/XAML) that opens fine the first 20 times then fails to open after that.

In the windows event application log the (unhelpful) message is that "App did not launch within its allotted time". If I attach Visual Studio debugger, it looks like the underlying error is "Not enough quota is available to process this command. (Exception from HRESULT: 0x80070718)".

Edit: it looks like it may be a problem with bg agent duplicate registration... will update

4
  • I am not sure if this is applicable in your case but a Bing Search led to this
    – Mark Hall
    Commented Jan 26, 2013 at 4:50
  • Thanks Mark, checked hat out already, think it is something different in my case, just investigating if it's something to do with background agent... Commented Jan 26, 2013 at 4:53
  • Expecting people to install your app to try and figure out what the problem is is unreasonable, IMO. You've posted no info about your app, no code, and a generic error message without a stack trace or any other useful information. Without any information other than "You can install my app to try and figure out what my problem is", I'd think this question should be closed as "too localized"; if your problem isn't in the question, and requires a download and install from an off-site location, it's totally meaningless if that off-site link is unavailable and not searchable by later readers here.
    – Ken White
    Commented Jan 26, 2013 at 5:06
  • Hi Ken, thanks for taking the time to reply, I agree a stack trace would be helpful, i will post one shortly. Commented Jan 26, 2013 at 5:10

1 Answer 1

3

The underlying "Not enough quota is available to process this command. (Exception from HRESULT: 0x80070718)" message was being caused by:

BackgroundAccessStatus status = await BackgroundExecutionManager.RequestAccessAsync();

being called on every load of the app. The 21st load and subsequent loads would all fail with "App did not launch within its allotted time" appear in application event log.

Making the call only happen only the first time a user loads the app has fixed the problem, the app now opens 30+ times with no error.

1
  • +1. Thanks for posting the solution so that others can use it in the future. :-)
    – Ken White
    Commented Jan 26, 2013 at 5:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.