.NET 4.0 - wodSSHTunnel assembly error - WeOnlyDo Discussion board

.NET 4.0 - wodSSHTunnel assembly error (wodSSHTunnel)

by Mike, Tuesday, October 21, 2014, 00:21 (3687 days ago) @ Jasmine

It seems the sample using ActiveX winform library running on .NET version 2.0. This causes the following errors in my .NET 4.0 console project.

The type 'System.Windows.Forms.AxHost' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

The Interop library does not allow the 'Copy Local' option to be set to true, so this error occurs.

Additional information: Could not load file or assembly 'Interop.wodSSHTunnelLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

When I copy the Interop.wodSSHTunnelLib.dll to the DEBUG folder in the bin directory i get the following error when running.

An unhandled exception of type 'System.Threading.ThreadStateException' occurred in System.Windows.Forms.dll Additional information: ActiveX control 'a2aad48e-67e5-448e-a889-d60e7f642dbd' cannot be instantiated because the current thread is not in a single-threaded apartment.

This is all because i'm using the winforms example for the wodTunnel

new AxwodSSHTunnelLib.AxwodTunnel()

when i should be using the example tunnel found here.

wodSSHTunnelCOMLib.wodTunnelCom wodSSHTunnel1;


http://www.weonlydo.com/code.asp?did=SOCKS-proxy-over-SSH-

But I cannot find the following required tunnel library anywhere. Where would i find this assembly??
Interop.wodSSHTunnelCOMLib.dll


Complete thread: