When trying to check the logging of an element via Cube, I get the following error:
System.IO.FileNotFoundException:
Message="The system cannot find the file specified. (Exception from HRESULT: 0x80070002)"
Source="mscorlib"
StackTrace:
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at Microsoft.Web.WebView2.Core.CoreWebView2Environment.<CreateCoreWebView2ControllerAsync>d__15.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.<Microsoft-Web-WebView2-Wpf-IWebView2Private-InitializeController>d__19.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.WebView2Base.<>c__DisplayClass32_0.<<EnsureCoreWebView2Async>g__Init|0>d.MoveNext()
Does anyone know how to fix this or what could be checked to resolve it?
Hi Catarina
I believe the following link will be useful: Can't see logs on DataMiner Cube - WebView2 Runtime Microsoft - DataMiner Dojo
- Edge is the default browser engine since v10.5.9
- (Re-)Installing Microsoft Edge WebView2 will most likely resolve this
- It's part of the DM Client Requirements
I also found DCP282401, which mentions there have been a few isolated cases for WebView2. Reinstalling WebView2 resolved it.
To be complete, the client PC need 2 things:
- The runtime, which should be installed here
C:\Program Files (x86)\Microsoft\EdgeWebView\Application\...
- The WebView2Loader.dll
Which comes with the Cube Client, e.g. you should find it under
C:\Users\<user>\AppData\Local\Skyline\DataMiner\DataMinerCube\DataMiner Cube\Versions\<version>\...
(a search for "webview" will reveal the DLLs)