I haven't found the perfect solution, but I have found a workable one.
- Mark the
StorageFile
with thevolatile
keyword (Significantly reduced errors). - Then I refactored some code that was unnecessarily executing from different threads (Now all errors gone).
NOTE: Both 1 and 2 implemented together were necessary to achieve the desired result - hence my comment about the solution NOT being perfect.
UPDATED: For a more correct solution, please see this post: FileIO Multiple Threads