socket.io-client-csharp icon indicating copy to clipboard operation
socket.io-client-csharp copied to clipboard

'Serialize' does not have an implementation

Open AshotN opened this issue 4 years ago • 2 comments

After upgrading from 2.2.4 to either 2.3.0 or 2.3.1

I get this error System.TypeLoadException: 'Method 'Serialize' in type 'SocketIOClient.Newtonsoft.Json.NewtonsoftJsonSerializer' from assembly 'SocketIOClient.Newtonsoft.Json, Version=2.2.1.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.'

from this line

client.JsonSerializer = new NewtonsoftJsonSerializer(client.Options.EIO);

I am using EIO version 3 if it matters

My SocketIOClient.Newtonsoft.Json version is 2.2.1

AshotN avatar Aug 06 '21 21:08 AshotN

Seems like the Serialize method of SocketIOClient.Newtonsoft was modified but the nuget package was not updated.

@doghappy

jlareo avatar Aug 07 '21 04:08 jlareo

Related issue: https://github.com/doghappy/socket.io-client-csharp/issues/179

Seems like the Serialize method of SocketIOClient.Newtonsoft was modified but the nuget package was not updated.

Exactly

I have released the new version 2.3.1 https://www.nuget.org/packages/SocketIOClient.Newtonsoft.Json

doghappy avatar Aug 09 '21 01:08 doghappy