You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Problem/Bug]: Webview2 FileIO.writeTextAsync throws "The system cannot find the file specified 0x80070002" when writing on the same file multiple times asynchronous
#4745
Open
josephsobhy opened this issue
Aug 15, 2024
· 1 comment
Using the WinRT API Windows.Storage.FileIO.writeTextAsync from java script in webview2 throws "The system cannot find the file specified 0x80070002" even that the file exists.
Some times it throws "The process cannot access the file because it is being used by another process. (0x80070020)" which is expected but the 0x80070002 is not correct.
Also tested the same behaviour is webview1 and it never throws anything!.
What happened?
Using the WinRT API
Windows.Storage.FileIO.writeTextAsync
from java script in webview2 throws "The system cannot find the file specified 0x80070002" even that the file exists.Some times it throws "The process cannot access the file because it is being used by another process. (0x80070020)" which is expected but the
0x80070002
is not correct.Also tested the same behaviour is webview1 and it never throws anything!.
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
No response
SDK Version
No response
Framework
WinUI2/UWP
Operating System
Windows 10, Windows 11
OS Version
No response
Repro steps
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
Don't know
Last working version (if regression)
No response
AB#54034963
The text was updated successfully, but these errors were encountered: