Dear all
Every time I execute my simple Python script to run DWSIM, I encounter the following error:
Error instantiating 'DWSIM.Thermodynamics.ThermoC.ThermoCPropertyPackage': System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'ThermoCS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. at DWSIM.Thermodynamics.ThermoC.ThermoCPropertyPackage.Init() --- End of inner exception stack trace --- at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at DWSIM.SharedClasses.Utility.GetPropertyPackages(Assembly assmbly) in C:\Users\Daniel\source\repos\DanWBR\dwsim\DWSIM.SharedClasses\Misc\Utilities.vb:line 653
While the outcome is as anticipated, the recurring error raises concerns. I would appreciate your suggestions on resolving this issue.
Sincerely Morteza
add a reference to ThermoCS dll:
clr.AddReference(dwsimpath + "/ThermoCS/ThermoCS.dll")
Perfect! Thank you.
Log in to post a comment.
Dear all
Every time I execute my simple Python script to run DWSIM, I encounter the following error:
While the outcome is as anticipated, the recurring error raises concerns. I would appreciate your suggestions on resolving this issue.
Sincerely
Morteza
add a reference to ThermoCS dll:
clr.AddReference(dwsimpath + "/ThermoCS/ThermoCS.dll")
Last edit: Daniel Medeiros 2023-11-01
Perfect! Thank you.