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.
[inlinecode]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'.[/inlinecode]
The Interop library does not allow the 'Copy Local' option to be set to true, so this error occurs.
[inlinecode]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.[/inlinecode]
When I copy the Interop.wodSSHTunnelLib.dll to the DEBUG folder in the bin directory i get the following error when running.
[inlinecode]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.[/inlinecode]
This is all because i'm using the winforms example for the wodTunnel
[code]new AxwodSSHTunnelLib.AxwodTunnel()[/code]
when i should be using the example tunnel found here.
[code]wodSSHTunnelCOMLib.wodTunnelCom wodSSHTunnel1;[/code]
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