Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COMException (0x800700AA): The requested resource is in use #1855

Closed
bdovaz opened this issue Oct 21, 2021 · 1 comment
Closed

COMException (0x800700AA): The requested resource is in use #1855

bdovaz opened this issue Oct 21, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@bdovaz
Copy link

bdovaz commented Oct 21, 2021

I am seeing a very strange case and it is that if the *.exe of WPF that instantiates the WebView2 component is in the path "C:\Program Files (x86)*" I get the following error, otherwise if I have it in a path like "Downloads" it works.

The first thing I thought was that it had to do with permissions but I launched the executable with administrator permissions and I still get exactly the same problem.

System.Runtime.InteropServices.COMException (0x800700AA): The requested resource is in use. (Exception from HRESULT: 0x800700AA)
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at Microsoft.Web.WebView2.Core.CoreWebView2Environment.<CreateCoreWebView2ControllerAsync>d__45.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.Web.WebView2.Wpf.WebView2.<>c__DisplayClass27_0.<<EnsureCoreWebView2Async>g__Init|0>d.MoveNext()
@bdovaz bdovaz added the bug Something isn't working label Oct 21, 2021
@bdovaz
Copy link
Author

bdovaz commented Oct 21, 2021

Finally I fixed it reading another issue: #297

@bdovaz bdovaz closed this as completed Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant