We are having a pretty annoying issue for the last few days (ever since friday last week).
Thursday last week we Updated our ZENworks Servers to 24.4...
And suspiciously on Friday we noticed that the automationhooks for ZENworks don't work on freshly installed machines anymore!
We use those for imaging (so we can use "zac zen-login"/"zen login" in scripts)
But we were still installing the 24.2 agent at this point which was working for months with these hooks previously?
I double and triple-checked the "C:\Program Files (x86)\Novell\ZENworks\bin\modules\DelayLoad"-Folder and the .dll for the automationhooks are in there...
So i also checked the zmd-messages log and found the following:[TRACE] [12/02/2024 12:48:44.682] [3856] [ZenworksWindowsService] [18] [] [ModuleLoader] [] [Assembly.LoadFrom(C:\Program Files (x86)\Novell\ZENworks\bin\modules\DelayLoad\AutomationHooks.dll) threw exception during module loading
Type: System.IO.FileLoadException
Message: Die Datei oder Assembly "file:///C:\Program Files (x86)\Novell\ZENworks\bin\modules\DelayLoad\AutomationHooks.dll" oder eine Abhängigkeit davon wurde nicht gefunden. Der Vorgang wird nicht unterstützt. (Ausnahme von HRESULT: 0x80131515)
Stack Trace:
bei System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
bei System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
bei System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte() hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
bei System.Reflection.Assembly.LoadFrom(String assemblyFile)
bei Novell.Zenworks.Zmd.ModuleLoader.LoadModule(ModuleFileInfo fileInfo)
Type: System.NotSupportedException
Message: Es wurde versucht, eine Assembly von einer Netzwerkadresse zu laden, was in früheren Versionen von .NET Framework zum Ausführen der Assembly als Sandkastenassembly geführt hätte. In dieser Version von .NET Framework wird die CAS-Richtlinie standardmäßig nicht aktiviert, dieser Ladevorgang kann daher gefährlich sein. Wenn Sie nicht beabsichtigen, durch diesen Ladevorgang eine Sandkastenassembly zu erstellen, aktivieren Sie den loadFromRemoteSources-Schalter. Weitere Informationen finden Sie unter "http://go.microsoft.com/fwlink/?LinkId=155569".
Stack Trace:
bei System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
bei System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
bei System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte() hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
bei System.Reflection.Assembly.LoadFrom(String assemblyFile)
bei Novell.Zenworks.Zmd.ModuleLoader.LoadModule(ModuleFileInfo fileInfo)
] [] [] [] [ZENworks Agent]
.Net threw a part of the error in german sadly...
But essentially it is talking about a dependency missing...
But on my machine for example i even already updated ZENworks to 24.4 and both machines the .net version is the same...
So why are the AutomationHooks not working now?
Are there newer ones? (i still only got Hooks version 20.2 - i guess they never changed anything there?)