Coder Social home page Coder Social logo

Comments (12)

doghappy avatar doghappy commented on July 19, 2024 1

I created a clean new project and I didn't get any errors.

csproj

<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>

App.config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <startup> 
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
    </startup>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>

package.config

<?xml version="1.0" encoding="utf-8"?>
<packages>
  <package id="Newtonsoft.Json" version="12.0.3" targetFramework="net472" />
  <package id="SocketIOClient" version="1.0.3.12" targetFramework="net472" />
  <package id="System.Collections" version="4.3.0" targetFramework="net472" />
  <package id="System.Reactive" version="4.3.2" targetFramework="net472" />
  <package id="System.Runtime.CompilerServices.Unsafe" version="4.5.2" targetFramework="net472" />
  <package id="System.Threading.Channels" version="4.7.0" targetFramework="net472" />
  <package id="System.Threading.Tasks.Extensions" version="4.5.3" targetFramework="net472" />
  <package id="System.ValueTuple" version="4.5.0" targetFramework="net472" />
  <package id="Websocket.Client" version="4.2.3" targetFramework="net472" />
</packages>

from socket.io-client-csharp.

luatnd avatar luatnd commented on July 19, 2024

My temporary solution is to downgrade to [email protected] to exclude the Websocket.Client.
Higher versions that have Websocket.Client causing crashed.
I would stay at [email protected] at least it can work :)

from socket.io-client-csharp.

luatnd avatar luatnd commented on July 19, 2024

Thanks, I'll check it and try to figure out the cause.

from socket.io-client-csharp.

emvivre avatar emvivre commented on July 19, 2024

The solution proposed by @doghappy does not work with me. The only approach which works is to downgrade to the [email protected] version. Thanks @luatnd .

from socket.io-client-csharp.

luatnd avatar luatnd commented on July 19, 2024

@emvivre Do you have a minimal reproduction to help doghappy face the issue?
I'm writing a proj base on a platform so it requires setting up a whole development env to reproduce the issue, cannot make a minimal project!

from socket.io-client-csharp.

doghappy avatar doghappy commented on July 19, 2024

Thanks for the information provided, I will fix this problem

from socket.io-client-csharp.

doghappy avatar doghappy commented on July 19, 2024

Please upgrade to 1.0.3.13-alpha, please tell me if it is fixed.

Install-Package SocketIOClient -Version 1.0.3.13-alpha

from socket.io-client-csharp.

luatnd avatar luatnd commented on July 19, 2024

Thanks, the same error, sometime the error is for System.Threading.Tasks.Extensions, sometime is for System.Reactive:

System.IO.FileNotFoundException: Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
   at System.Threading.Channels.SingleConsumerUnboundedChannel`1..ctor(Boolean runContinuationsAsynchronously)
   at System.Threading.Channels.Channel.CreateUnbounded[T](UnboundedChannelOptions options)
   at Websocket.Client.WebsocketClient..ctor(Uri url, Func`3 connectionFactory)
   at SocketIOClient.SocketIO.ConnectAsync()
   at cAlgo.Robots.BitQSignalExecutor.<initRemoteSignal>d__a.MoveNext() in c:\Users\Neo\Documents\cAlgo\Sources\Robots\BitQ Signal Executor\BitQ Signal Executor\BitQ Signal Executor.cs:line 150
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
System.IO.FileNotFoundException: Could not load file or assembly 'System.Reactive, Version=4.4.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Reactive, Version=4.4.0.0, Culture=neutral, PublicKeyToken=94bc3704cddfc263'
   at SocketIOClient.SocketIO.ConnectAsync()
   at cAlgo.Robots.BitQSignalExecutor.<initRemoteSignal>d__a.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

from socket.io-client-csharp.

luatnd avatar luatnd commented on July 19, 2024

I'm trying to clone the source code and add it to my project without success, I have no C# experience so the language version, the lamda syntax ... prevent me to build -.-

from socket.io-client-csharp.

doghappy avatar doghappy commented on July 19, 2024

You don't need to clone the source code, please try to install missing dependencies, If you have already installed, please try to upgrade to the latest version

System.Threading.Tasks.Extensions and System.Reactive

from socket.io-client-csharp.

luatnd avatar luatnd commented on July 19, 2024

After updating those above dependencies, even Websocket.Client, I faced the same error.
Tried with both 1.0.3.13-alpha and 1.0.3.13

from socket.io-client-csharp.

doghappy avatar doghappy commented on July 19, 2024

This issue has been fixed in the latest version 2.0.0. If it has not been fixed, please reopen it.

from socket.io-client-csharp.

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.