question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Default constructor not found for type Renci.SshNet.Security.KeyExchangeECCurve25519

See original GitHub issue

Builds to ARM Application starts Fails on client.connect();

"System.MissingMethodException: Default constructor not found for type Renci.SshNet.Security.KeyExchangeECCurve25519\r\n at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) [0x00000] in <00000000000000000000000000000000>:0 \r\n at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00000] in <00000000000000000000000000000000>:0 \r\n at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00000] in <00000000000000000000000000000000>:0 \r\n at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in <00000000000000000000000000000000>:0 \r\n at System.Activator.CreateInstance (System.Type type) [0x00000] in <00000000000000000000000000000000>:0 \r\n at Renci.SshNet.Common.Extensions.CreateInstance[T] (System.Type type) [0x00000] in <00000000000000000000000000000000>:0 \r\n at Renci.SshNet.ServiceFactory.CreateKeyExchange (System.Collections.Generic.IDictionary`2[TKey,TValue] clientAlgorithms, System.String[] serverAlgorithms) [0x00000] in <00000000000000000000000000000000>:0 \r\n at Renci.SshNet.Session.OnKeyExchangeInitReceived (Renci.SshNet.Messages.Transport.KeyExchangeInitMessage message) [0x00000] in <00000000000000000000000000000000>:0 \r\n at Renci.SshNet.Messages.Transport.KeyExchangeInitMessage.Process (Renci.SshNet.Session session) [0x00000] in <00000000000000000000000000000000>:0 \r\n at Renci.SshNet.Session.MessageListener () [0x00000] in <00000000000000000000000000000000>:0 \r\n at Renci.SshNet.Session.<Connect>b__169_0 () [0x00000] in <00000000000000000000000000000000>:0 \r\n at Renci.SshNet.Abstractions.ThreadAbstraction+<>c__DisplayClass2_0.<ExecuteThread>b__0 (System.Object o) [0x00000] in <00000000000000000000000000000000>:0 \r\n at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x00000] in <00000000000000000000000000000000>:0 \r\n at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0 \r\n at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0 \r\n at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00000] in <00000000000000000000000000000000>:0 \r\n at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <00000000000000000000000000000000>:0 \r\n at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <00000000000000000000000000000000>:0 "

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
bkfichtercommented, Mar 10, 2021

You, my friend, are a FREAKING HERO! That was exactly the issue. If I am ever rich enough to own a bridge, I am naming it in your honor.

1reaction
darinkescommented, Mar 10, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Default constructor not found for type UnityEngine. ...
When I make a build I see this error thousands of times, how to fix it? MissingMethodException: Default constructor not found for type......
Read more >
Trying to use an external library in my Android project, but ...
Specifially, MissingMethodException : Default constructor not found for type Renci.SshNet.Security.KeyExchangeDiffieHellmanGroupExchangeSha256 .
Read more >
Getting random exceptions on iOS · Issue #3
Hi, I am getting following exceptions: System.MissingMethodException: Default constructor not found for type Renci.SshNet.Security.
Read more >
Deserialize a json object with an array fails with Default ...
I am having a little trouble trying to deserialize an object within a monotouch project using restsharp. ... Default constructor not found for...
Read more >
Weak private key generation in SSH.NET <= 2020.0.1 ...
During an X25519 key exchange, the client's private key is generated with System.Random from the C# standard library: File: SSH.NET/src/Renci.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found