Comments (4)
However, an error occurs. In the SecsGem.cs file, at line 430
'System.IO.FileNotFoundException' (Secs4net.dll)
It's easy to fix. You just need to add System.Memory assembly to your project.
from secs4net.
-----------------add --------------
SecsGem.cs line 430 in
MessageHeader create error
new MessageHeader(deviceId: 0xFFFF, messageType: msgType, systemBytes: systembyte).EncodeTo(new byte[10]);
EncodeTo(new byte[10])
Running this code will result in an error
i use visual studio 2017 and framework 4.7.1
from secs4net.
i got an issue which is that "system.memory version=4.0.1" could not be loaded.
details info as below:
System.IO.FileNotFoundException: could not load...“System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51”
Filename:“System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51”
at Secs4Net.StreamDecoder.<.ctor>g__GetMessageHeader|23_1(Int32& length, Int32& need)
at Secs4Net.StreamDecoder.<.ctor>g__GetTotalMessageLength|23_0(Int32& length, Int32& need)
at Secs4Net.StreamDecoder.Decode(Int32 length)
at Secs4Net.SecsGem.<.ctor>g__SocketReceiveEventCompleted|84_9(Object sender, SocketAsyncEventArgs e)
secs4net project info:
target framework: .Net Standard 2.0
vs 2017
please advice
from secs4net.
the issue has been solved. we have to specify the System.Memory
version in project "SecsDevice"
, and it will override the default System.Memory
verson
from secs4net.
Related Issues (20)
- Program crash problem HOT 1
- Passive mode connection, the device intentionally disconnects from the network, and the connection status remains unchanged
- registering COM
- Linq方式添加item错误 HOT 2
- Stream greater than 63 is a parsing error
- network error HOT 1
- State remains in Connected and not going into Selected
- Sometimes the message reading is incomplete. HOT 5
- Can't response message after reconnect,自動重連之後不會回復消息了 HOT 10
- SendAsync Not Sending In A Specific Case HOT 1
- WpfVisualizer running in environment .net framework 4.8, an error is reported
- Parsing packet error
- A suggestion for class SecsMessage
- How can I use Secs4Net to create a passive host EAP to connect to many equipments? HOT 2
- EQ cannot be connected after reopen host severial times while selected HOT 2
- S10F3 remote terminal message notification, Chinese garbled code issue
- Question
- Is it possible to support Linux ARMv7 32bits for doubles and floats HOT 2
- [Question] SECS-I over Telnet compatibility
- can you please list difference on license and no license ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from secs4net.