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

Hong 711 Reputation points
2022-06-14T00:39:45.117+00:00
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 26,636 Reputation points Microsoft Employee
    2022-06-15T06:59:14.043+00:00

    Hello,

    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 additional answer

Sort by: Most helpful
  1. ELBANNOUNI.MOHAMMED 81 Reputation points
    2022-06-14T04:46:19.48+00:00

    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.