Login  
Search All Forums
Dart Home | PowerTCP Emulation for .NET | Custom Development Reply | PowerTCP Emulation for .NET Topics | Forums   
AuthorForum: PowerTCP Emulation for .NET
Topic: Error after adding control
scorpion53061
admin@kjmsolutions.com

From: Sheboygan, WI USA
Posts: 140
Member Since: 04/27/03
posted June 28, 2004 5:35 PM

This line after adding the emulator bombs out with the error:

  'app.exe': Loaded 'c:\windows\assembly\gac\dart.powertcp.telnet\1.0.1.2__5966291b8955e4bb\dart.powertcp.telnet.dll', No symbols loaded.
An unhandled exception of type 'System.InvalidCastException' occurred in dart.powertcp.telnet.dll

Additional information: Specified cast is not valid.  

Me.TelnetEmulator.Telnet.ClientOptions.AddRange(New Dart.PowerTCP.Telnet.Option() {New Dart.PowerTCP.Telnet.Option(Dart.PowerTCP.Telnet.OptionCode.SuppressGoAheads, Nothing, Dart.PowerTCP.Telnet.OptionState.RequestOn), New Dart.PowerTCP.Telnet.Option(Dart.PowerTCP.Telnet.OptionCode.WindowSize, New Byte() {CType(0, Byte), CType(80, Byte), CType(0, Byte), CType(24, Byte)}, Dart.PowerTCP.Telnet.OptionState.RequestOn), New Dart.PowerTCP.Telnet.Option(Dart.PowerTCP.Telnet.OptionCode.TerminalType, New Byte() {CType(0, Byte), CType(116, Byte), CType(116, Byte), CType(121, Byte)}, Dart.PowerTCP.Telnet.OptionState.RequestOn)})
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted June 29, 2004 9:00 AM

You are using a reference to the Dart.PowerTCP.Telnet DLL from the Telnet for .NET kit. Either uninstall the Telnet for .NET or change the reference to point to the one in the Emulation for .NET directory.
scorpion53061
admin@kjmsolutions.com

From: Sheboygan, WI USA
Posts: 140
Member Since: 04/27/03
posted June 29, 2004 9:59 AM

I updated the reference as you said and rebuilt the project. I now have this error:

Code generation for property 'Binary' failed. Error was: 'Specified cast is not valid.'
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted June 29, 2004 10:16 AM

Do you get this error when you compile the sample app? If not, compare the references used in the sample to those used in your app.
Reply | PowerTCP Emulation for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX