HMI can't start Apps

I got a station with

-OES V4.11c

-HMI Version V.11.1.0

Various Apps, for example

-Event Recoder 1.5.2.0

When starting the App from the HMI I get the following error:

2025-04-03 11:15:25	(A:1690296kB M:37325kB)	[Error]	<Application>
App Meldungshistorie: System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
   at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence)
   at System.Reflection.Assembly.LoadFile(String path)
   at Bosch.OpCon.ShopfloorApp.Core.Extensions.ManifestExtensions.LoadAppType(Manifest manifest)
   at Bosch.OpCon.ShopfloorApp.Core.RemotingHelpers.RemotingObject..ctor(String appName, Manifest app)
   at Bosch.OpCon.ShopfloorApp.Core.RemotingHelpers.RemotingObjectLoader.Load(String appName, Manifest app)
   at Bosch.OpCon.ShopfloorApp.Core.RemotingHelpers.RemotingObjectLoader.Load(String appName, Manifest app)
   at Bosch.OpCon.ShopfloorApp.Host.Program.Main(String[] args)

2025-04-03 11:15:25	(A:1687532kB M:38073kB)	[Error]	<Application>
Unhandled exception occured:
System.Runtime.Remoting.RemotingException: Failed to connect to an IPC Port: The system cannot find the file specified.
 

Server stack trace: 
   at System.Runtime.Remoting.Channels.Ipc.IpcPort.Connect(String portName, Boolean secure, TokenImpersonationLevel impersonationLevel, Int32 timeout)
   at System.Runtime.Remoting.Channels.Ipc.ConnectionCache.GetConnection(String portName, Boolean secure, TokenImpersonationLevel level, Int32 timeout)
   at System.Runtime.Remoting.Channels.Ipc.IpcClientTransportSink.ProcessMessage(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITransportHeaders& responseHeaders, Stream& responseStream)
   at System.Runtime.Remoting.Channels.BinaryClientFormatterSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Bosch.OpCon.ShopfloorApp.Core.RemotingHelpers.IIpcChannel.SendCommand(String command, Object[] parameters)
   at Bosch.OpCon.ShopfloorApp.Core.RemotingHelpers.RemotingObjectProxy..ctor(Manifest def, String uri, String runtimeId, Process process)
   at Bosch.OpCon.ShopfloorApp.Core.Extensions.ManifestExtensions.Load(Manifest app, CancellationToken ctx, Int32 timeoutMs, Boolean launchDebugger)
   at Bosch.OpCon.ShopfloorApp.Core.Extensions.ManifestExtensions.Load(Manifest app, Int32 timeoutMs, Boolean launchDebugger)
   at Bosch.OpCon.HMI.Modulo.ShopfloorApp.StartApp()
   at Bosch.OpCon.HMI.Modulo.AppPanel.GetActualApp(ShopfloorApp shopFloorApp)
   at Bosch.OpCon.HMI.Modulo.AppPanel.AppManager_AppRequest(ShopfloorApp shopFloorApp)
   at Bosch.OpCon.HMI.Modulo.AppManager.ShowApp(ShopfloorApp app)
   at Bosch.OpCon.HMI.Modulo.AppMenueScrollPanel.AppButton.Click(Point p)
   at Bosch.OpCon.HMI.Modulo.AppMenueScrollPanel.ShopfloorAppsMenue.Click(Point p)
   at Bosch.OpCon.HMI.Modulo.AppMenueScrollPanel.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at Bosch.OpCon.HMI.Modulo.Forms.TouchControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

I'm sure it worked before, but at some point stopped.

Is this a known issue?

Is there a Fix?

Thanks in advance

Best reply by nexidator

This is most likely caused by the so-called zone identifier, marking the files as downloaded from an untrusted source, like the internet. It also happens when downloading files from SharePoint, e.g. in Teams.

The best reply by HugeGo in this thread explains how you can remove the zone identifier.

I would suggest you run the command for the complete project (i.e. the folder containing the Station and the Std folder).

View original
4 replies
Resolved