"The object has been rundown by the stub manager while there are external clients"

Hong 711 Reputation points
await myStorageFolder.CreateFolderAsync("foo", CreationCollisionOption.OpenIfExists)  

Why does the above code occasionally throw the following exception?

System.Exception: The object has been rundown by the stub manager while there are external clients.

I want to emphasize ”occasionally“. It usually works flawlessly. What does that error mean exactly? Could anyone shed some light on this?

Universal Windows Platform (UWP)
{count} votes

Accepted answer
  1. Roy Li - MSFT 28,051 Reputation points Microsoft Vendor


    Welcome to Microsoft Q&A!

    Based on the log, the exception happens when the app is trying to get StorageFolder. I did some research about this, a possible scenario is that another process is using the Folder. My suggestion is that you might use the try/catch block to handle the exception and tell the customer to try again when the exception is thrown.

    Thank you.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

1 additional answer

Sort by: Newest
  1. ELBANNOUNI.MOHAMMED 81 Reputation points

    Les erreurs d’exécution peuvent se produire pour diverses raisons. Toutefois, toutes les erreurs ne doivent pas être gérées en tant qu’exceptions dans votre code.

    1 person found this answer helpful.