Comments (12)
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.
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.
Thanks, I'll check it and try to figure out the cause.
from socket.io-client-csharp.
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.
@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.
Thanks for the information provided, I will fix this problem
from socket.io-client-csharp.
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.
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.
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.
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.
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.
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)
- The server returned status code '400' when status code '101' was expected. HOT 1
- How can I find out if the verification failed? HOT 1
- EmitAsync doesn't seem to work with data parameters HOT 1
- Updating to version 3.1.1 leads to error CS0118 HOT 2
- Help using nuget HOT 2
- Connection hanging, not connecting HOT 1
- about EmitAsync HOT 1
- about DisconnectAsync HOT 1
- Apache license in socket.io/package.json files
- socketioclient is missing NuGet package README file
- Iยดm getting spammed by error messages
- Json Serializer Options
- Custom ServerCertificateValidationCallback [3.1.1] HOT 1
- Added this project to the China .NET OSS Ranking
- Some packages are missing metadata
- Inconsistency between registering and unregistering event handlers
- Optimise dependencies based on TFM HOT 1
- Why there is no returning info onConnected -- OnDisconnected etc HOT 3
- Android Unity3D build: Socket IO callbacks are not executed HOT 2
- OnDisconnected issue on Raspberry Pi/NET 6 HOT 3
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 socket.io-client-csharp.