Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

System.MissingMethodException #23

Closed
Tendx opened this issue Apr 30, 2021 · 4 comments
Closed

System.MissingMethodException #23

Tendx opened this issue Apr 30, 2021 · 4 comments

Comments

@Tendx
Copy link

Tendx commented Apr 30, 2021

Hi,
when i test, it throws an excepption. I run it on windows 10 .net 5.

using (OkexClient client = new OkexClient())
{
    client.SetApiCredentials(account.AKey, account.SKey, account.Pass);
    var tickers = client.Spot_GetAllTickers(); // throw an exception
}

System.MissingMethodException
HResult=0x80131513
Message=Method not found: 'System.Threading.Tasks.Task1<CryptoExchange.Net.Objects.WebCallResult1<!!0>> CryptoExchange.Net.RestClient.SendRequest(System.Uri, System.Net.Http.HttpMethod, System.Threading.CancellationToken, System.Collections.Generic.Dictionary2<System.String,System.Object>, Boolean, Boolean, System.Nullable1<CryptoExchange.Net.Objects.PostParameters>, System.Nullable1<CryptoExchange.Net.Objects.ArrayParametersSerialization>, Int32)'. Source=Okex.Net StackTrace: at Okex.Net.OkexClient.<Spot_GetAllTickers_Async>d__267.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1.Start[TStateMachine](TStateMachine& stateMachine)
at Okex.Net.OkexClient.Spot_GetAllTickers_Async(CancellationToken ct)
at Okex.Net.OkexClient.Spot_GetAllTickers(CancellationToken ct)
at Assets.OApi.SyncAccount(Account account, Dictionary`2 prices) in C:\Dex\Assets\OApi.cs:line 25
at Assets.Program.Main(String[] args) in C:\Dex\Assets\Program.cs:line 34

@Tendx
Copy link
Author

Tendx commented Apr 30, 2021

And CryptoExchange.Net is 3.9.0.

@Tendx
Copy link
Author

Tendx commented Apr 30, 2021

I downgraded Binance.Net and Huobi.Net in the same project. Now CryptoExchange.Net is 3.8.0, and it worked. So it seems Okex.net isn't compatible with CryptoExchange.Net 3.9.0.

@EgorovOleg
Copy link

I downgraded Binance.Net and Huobi.Net in the same project. Now CryptoExchange.Net is 3.8.0, and it worked. So it seems Okex.net isn't compatible with CryptoExchange.Net 3.9.0.

Hello. I faced this problem too. I just upgraded all libraries to the highest version and updated CryptoExchange.Net to version 3.9.0. Only one version of CryptoExchange.Net gets into the assembly

@burakoner
Copy link
Owner

Please take a look for c53e24f

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants