So I'm trying to get the CSharp DotNetCore Examples to run, and I had some trouble. When I run the ListPlc I get the following exception:
Fatal error. Internal CLR error. (0x80131506)
at System.Runtime.Loader.AssemblyLoadContext..cctor()
at System.Runtime.Loader.AssemblyLoadContext.add_AssemblyResolve(System.ResolveEventHandler)
at System.Reflection.Assembly.LoadFrom(System.String)
at libplctag.NativeTagWrapper.Initialize()
at libplctag.NativeTagWrapper.InitializeIfRequired()
at libplctag.NativeTagWrapper.Read()
at libplctag.Tag.Read()
at libplctag.Tag`2[[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Read()
at CSharpDotNetCore.ListPlc.Run()
at CSharpDotNetCore.Program.Main(System.String[])
I have configured the example to point at my PLC and I believe I have the path right (I'm assuming the 1 means the communication style is ethernet and the 0 means the first slot, which are both correct for my configuration). I'm using the ControlLogix type and the ab_eip protocol. I can confirm my PLC is a ControlLogix.
If I run the ExampleListTags, configured the same as the above, it times out without listing any tags. It times out in NativeTagWrapper.Initialize, throws at line 299. Any suggestions? I'd love to make this work.
Thanks!
Isaac