PLC Next won't start after installation - File not found exception
I have installed PLCNext Engineer 2021.0.1 (Build 4.7.1144.0) on my windows 10 computer for the first time. When I try to launch the program, I get the error below.
The installation process completes with no errors... I reboot the computer several times during the installation. I have tried it on 3 computers in our office and get the same result.
The file that is reported as missing by the exception is present in the program folder.
Any help would be appreciated.
Thanks
Scott.
Unexpected Exception
======================================================================
Could not load file or assembly 'Ade.Safety.Compiler.CortexImpl.dll' or one of its dependencies. The specified module could not be found.
Exception chain:
----------------------------------------------------------------------
FileNotFoundException
======================================================================
Details
----------------------------------------------------------------------
FileNotFoundException
==============================
Message:
------------------------------
Could not load file or assembly 'Ade.Safety.Compiler.CortexImpl.dll' or one of its dependencies. The specified module could not be found.
Stack trace:
------------------------------
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at acb.a(ComposablePartSourceConfiguration A_0)
at acb..ctor(ComponentFramework A_0, IConfigurationService A_1)
at Ade.Components.ComponentFramework.Init()
at Ade.UIFramework.MainControl..ctor()
at (PCWorxNextApplicationStarter )
at PCWorxNext.PCWorxNextApplicationStarter.CreateMainWindow()
at Ade.Application.ApplicationStarter.Init()
at (String[] )
at PCWorxNext.Startup.Main(String[] args)
Comments
Solved by email
(reference: 207161)
Hi Martin and Scott,
I am having the same issue, could you please advise on how you solved this, so that I can try it too?
Regards
Also having issues trying to get thelatest and now none of the older version work. All versions come up with same error Ade.Safety.Compiler.CortexImpl.dll not found/missing. Please help. Thanks.
This may be related, after not able to install PLCnext Enrgr I started getting Firefox errors too and cannot start it up or reinstall. VLCRUNTIME_1.dll not found/missing
I have also the same problems as the others. Version 2020.6.2 is no longer running for me either.
I ask for help.
PLCnext Engineer, Version 2021.0.1 (Build 4.7.1144.0)
Unexpected Exception
======================================================================
Die Datei oder Assembly "Ade.Safety.Compiler.CortexImpl.dll" oder eine Abhängigkeit davon wurde nicht gefunden. Das angegebene Modul wurde nicht gefunden.
Exception chain:
----------------------------------------------------------------------
FileNotFoundException
Hi,
I have downloaded the latest version and installed. But I am getting the same fault.
---Could not load file or assembly 'Ade.Safety.Compiler.CortexImpl.dll' or one of its dependencies. The specified module could not be found.
I am using Windows10 Professional 64bit
Can anyone help?
Full Problem report:
PLCnext Engineer, Version 2021.0.2 (Build 4.7.1183.0)
Unexpected Exception
======================================================================
Could not load file or assembly 'Ade.Safety.Compiler.CortexImpl.dll' or one of its dependencies. The specified module could not be found.
Exception chain:
----------------------------------------------------------------------
FileNotFoundException
======================================================================
Details
----------------------------------------------------------------------
FileNotFoundException
==============================
Message:
------------------------------
Could not load file or assembly 'Ade.Safety.Compiler.CortexImpl.dll' or one of its dependencies. The specified module could not be found.
Stack trace:
------------------------------
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at acb.a(ComposablePartSourceConfiguration A_0)
at acb..ctor(ComponentFramework A_0, IConfigurationService A_1)
at Ade.Components.ComponentFramework.Init()
at Ade.UIFramework.MainControl..ctor()
at (PCWorxNextApplicationStarter )
at PCWorxNext.PCWorxNextApplicationStarter.CreateMainWindow()
at Ade.Application.ApplicationStarter.Init()
at (String[] )
at PCWorxNext.Startup.Main(String[] args)
Sorry for the delay.
There have been cases where an incomplete download of the PLCnext Engineer installer file has caused a problem similar to this.
After downloading the PLCnext Engineer installer, please check the file size and checksum against the information on the Download page, e.g. using
certutil
:certutil -hashfile PLCnext_Engineer_Setup_2021.0.2_LTS_64bit.exe SHA256
If the SHA256 checksums do not match, please download the installer again.
Hallo Martin,
der Fehler besteht weiterhin. Ich habe die Version 2021.0.1 deinstalliert, die neue Version 2021.0.2 heruntergeladen, mit certutil geprüft (Hash ist i.O.) und installiert. Nach Neustart des Computers und Aufruf des Programms zeigt sich folgender Fehlerbericht:
PLCnext Engineer, Version 2021.0.2 (Build 4.7.1183.0)
Unexpected Exception
======================================================================
Die Datei oder Assembly "Ade.Safety.Compiler.CortexImpl.dll" oder eine Abhängigkeit davon wurde nicht gefunden. Das angegebene Modul wurde nicht gefunden.
Exception chain:
----------------------------------------------------------------------
FileNotFoundException
======================================================================
Details
----------------------------------------------------------------------
FileNotFoundException
==============================
Message:
------------------------------
Die Datei oder Assembly "Ade.Safety.Compiler.CortexImpl.dll" oder eine Abhängigkeit davon wurde nicht gefunden. Das angegebene Modul wurde nicht gefunden.
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.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
bei System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
bei System.Reflection.Assembly.Load(String assemblyString)
bei acb.a(ComposablePartSourceConfiguration A_0)
bei acb..ctor(ComponentFramework A_0, IConfigurationService A_1)
bei Ade.Components.ComponentFramework.Init()
bei Ade.UIFramework.MainControl..ctor()
bei (PCWorxNextApplicationStarter )
bei PCWorxNext.PCWorxNextApplicationStarter.CreateMainWindow()
bei Ade.Application.ApplicationStarter.Init()
bei (String[] )
bei PCWorxNext.Startup.Main(String[] args)
Ein fehlerhafter, unvollständiger Download scheint es also nicht gewesen zu sein.
Ärgerlich ist, dass auch meine alte Version 2020.6.2 nicht mehr läuft. Nun habe ich keine lauffähige Entwicklungsumgebung!
Ich hoffe, ihr habt bald eine Lösung.
Gruß Jürgen
I also had this issue and I solved it reinstalling visual C++ 2019 (VC_redist.x64).
Hi all,
The developers have now confirmed that the reported stack traces are related to the VC++ redistributables. Thanks to ayxworks for the tip.
If anyone else would like to try this, the Microsoft redistributables are available here:
The latest supported Visual C++ downloads (microsoft.com)
~ Martin.