Giter Site home page Giter Site logo

Comments (4)

a-v-kalabuhov avatar a-v-kalabuhov commented on July 20, 2024 2

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.

kyunggyuyeol avatar kyunggyuyeol commented on July 20, 2024

-----------------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.

nevernet avatar nevernet commented on July 20, 2024

@a-v-kalabuhov @kyunggyuyeol

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.

nevernet avatar nevernet commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.