Quantcast
Channel: sshnet Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1026

Commented Unassigned: Null Exception thrown inside library [2721]

$
0
0
Below exception crashes the windows app. Any Ideas what is cause of the problem here.

Thanks.
```
Application: MyApp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
Stack:
at Renci.SshNet.Sftp.SubsystemSession.RaiseError(System.Exception)
at System.EventHandler`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Invoke(System.Object, System.__Canon)
at Renci.SshNet.Session.RaiseError(System.Exception)
at Renci.SshNet.Session.MessageListener()
at Renci.SshNet.Session.<Connect>b__4()
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()

```
Comments: ** Comment from web user: jlaustill **

I'm running into this exact same situation. It appears to be related to garbage handling as it only happens when I try to create a new object and dispose of the old one for a new connection. I'm working around it by doing a remove port forward and then disconnect then reconnect, which seems to be working. But I would much rather just new up a new object and connect from there. I may have to download the source code tomorrow and see if I can replicate it and find at least the section of code causing the issue.


Viewing all articles
Browse latest Browse all 1026

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>