We are moving! We are currently migrating our community to the new Bosch Connected Industry Online Portal. The community will be available latest in the new year again, until then it will be in read-only mode. Click here for more information.
01-28-2022 08:47 AM
Hello,
I have added a view with a Mod_HtmlView in Control Plus Studio v5.3.0:
When I open the view from the HMI I get this error:
Inside the logfile I can see that one .dll file is missing.
Does Anybody know how to solve this issue?
Many thanks.
Error loading Smart control:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: Unable to load DLL 'WebView2Loader.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at Microsoft.Web.WebView2.Core.CoreWebView2Environment.GetAvailableCoreWebView2BrowserVersionString(String browserExecutableFolder, String& versionInfo)
at Microsoft.Web.WebView2.Core.CoreWebView2Environment.GetAvailableBrowserVersionString(String browserExecutableFolder)
at Bosch.OpCon.HMI.Modulo.Forms.Mod_HtmlView..ctor()
--- End of inner exception stack trace ---
at VisiWinNET.Forms.Internals.SFCLoader.Load(String file, Boolean callEndInit)
at Bosch.OpCon.HMI.Modulo.Shared.SfcProvider.GetControl(OpconUnit ownerUnit, String name, String& path)
(...)
2022-01-27 17:58:46 (A:1589588kB M:20513kB) [Error] <Application>
Unhandled Non-UI exception occured:
System.NullReferenceException: Object reference not set to an instance of an object.
at Bosch.OpCon.HMI.Modulo.Forms.Mod_HtmlView.Dispose(Boolean disposing)
at System.ComponentModel.Component.Finalize()
Solved! Go to Solution.
01-28-2022 08:51 AM
This happens when a necessary program component is not deployed to the target system.
Please update your target system (IPC) in the Control plus Studio project using the file IPC_V5.3.nxtc. This will update the deployment batches in the Std folder of your project.
Afterwards, run a deployment of the HMI Standard files in order to copy the missing file to the target system.
01-28-2022 09:24 AM
Perfect,
Now is working, but it requires to install Microsoft WebView2 runtime.
01-28-2022 09:29 AM
The WebView2 runtime is included in the latest Nexeed target system image.
Alternatively, you can download an offline installer at Microsoft, copy it to the target system and install it there. You will also need to install the WebView2 runtime on your development computer if you want the Mod_HtmlView to work when running the HMI locally.
WebView2 - Microsoft Edge Developer
(The evergreen standalone installer X64 is the correct one)