Mod_HtmlView error

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()

Best reply by nexidator

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.

View original
3 replies
Resolved