HMI Html View - Missing DLL file (WebViewLoader2)

Hi!

I'm using CPS 5.8 and I wanted to open a HMI view which contains an HtmlView. As soon as it loads, CPS shows an error (please see attachment) that I'm missing the WebViewLoader2.dll file. I've tried to reinstall CPS, also reinstalled Microsoft Edge, separately reinstalled Microsoft WebView 2. Also tried to install it with Evergreen, and additionally I got the dll file and copied under System32.

Nothing solved this issue, and my colleagues doesn't have this problem with the same settings and same project.

Could you please give me some advice?

Thank you in advance! ๐Ÿ˜Š

2024-02-07_15h39_11.png
32.51KB
Best reply by HugeGo

The checkbox was unfortunately removed from Microsoft. Last version with that checkbox is Win7. If you want to unblock the files you need to perform a Powershell command.
E.g. like this

gci -r | Unblock-File 

(https://forums.ivanti.com/s/article/How-To-use-PowerShell-to-unblock-files?language=en_US&ui-force-components-controllers-recordGlobalValueProvider.RecordGvp.getRecord=1)

Easiest way to do this is following.

  1. Open FileExpolorer and navigate to the folder that contains the files you want to unblock
  2. Into the address field type powershell. Now powershell should open in the correct path.
  3. Perform the command listed above. Be aware that this command will go recursive through all files that are inside this folder. That might take a while.

Afterwards your files should be unblocked. This might also solve issues with chm files or evenย schema files for xml.

View original
9 replies
Resolved