Quantcast
Channel: SSH.NET Library
Viewing all articles
Browse latest Browse all 2955

New Post: PortForwading Bug

$
0
0
Hello,

I'm worry to announce this problem is still present under Windows XP.

The SqlConnection.ClearAllPools() solution runs fine under Windows 7, but under XP breaks still.

I debug just this code:
    //  Wait for key exchange to be completed
                    this.WaitHandle(this._keyExchangeCompletedWaitHandle);

                    //  If sessionId is not set then its not connected
                    if (this.SessionId == null)
                    {
                        this.Disconnect();
                        return;
                    }

                    //  Request user authorization service
                    this.SendMessage(new ServiceRequestMessage(ServiceName.UserAuthentication));

                    //  Wait for service to be accepted
                    this.WaitHandle(this._serviceAccepted);
On Session.cs file

The exception shows:

"No se controló System.NullReferenceException
Message=Referencia a objeto no establecida como instancia de un objeto.
InnerException: "

on

private void Session_ErrorOccured(object sender, Common.ExceptionEventArgs e)
    {
        this._listener.Stop();
    }

This exception only appears the second time that I open the connection.
The example also fails on XP SP3 machine, without the SQLCOnnection.clearallpools() only opens the portforwading to one server, and the second tunnel stay to the first connection,

With the clearallpools() also rasie the exception System.NullReferenceException

:_(((
:_((

I try with Chilkat demo, and run fine, using the SQLCOnnectino.clearallpools()

I would like solve the SSH.NET problem,

please help.

Viewing all articles
Browse latest Browse all 2955

Trending Articles