Problem using a consol appication though telnet  
Author Message
rmeuser





PostPosted: Visual C# Express Edition, Problem using a consol appication though telnet Top

Hi there

I made a small console application with a data access to a SQL Server on my local Windows XP PC.

The build exe-file (quai.exe) I copied to on other Windows XP PC, which acts also as a Telnet server.

When I try to telnet this server a start my .exe from a Windows XP PC everything works fine.

When I do the same thing from a Linux PC, I can login to the Telnet server, but when the console application starts I get the following message:

Exception non gre: System.IO.IOException: Descripteur non valide

System.IO._Error.WinIOError(Int32 errorCode, String maybeFullPath)

System.Console.GetBufferInfo(Boolean trowOnNoConsole, Boolean& succeeded)

System.Console.GetBufferInfo()

System.Console.Clear()

Quai.Program.Main(String[] args)

Does this only work with Microsoft or did I do something wrong

Thanks in advance for any help.

Best regards

Ralf




Visual Studio Express Editions21  
 
 
Scott McKeown





PostPosted: Visual C# Express Edition, Problem using a consol appication though telnet Top

Hi rmeuser,

I'm sure that due to the nature of the .Net framework (which C# is part of) at the moment you can only use applications that you write on windows, on windows based systems.

I do know though that other systems are currenly being written that allow a simular usage on Linux systems. This is a link to one that I know of.

http://www-128.ibm.com/developerworks/library/l-mono/index.html ca=dgr-lnxw01.NetonLinux

Hope this helps

Scott



 
 
rmeuser





PostPosted: Visual C# Express Edition, Problem using a consol appication though telnet Top

Thanks Scott for your answer.

I don't want to execute my console application on Linux.

I just would like to execute the program on the windows telnet server und use the linux client as terminal client.

Display the application screen and redirect the keyboard to the telnet server.

Perhaps is my logic not good, but I thought that the telnet client si executing the console applicaion on the distance server.

best regards

Ralf



 
 
Scott McKeown





PostPosted: Visual C# Express Edition, Problem using a consol appication though telnet Top

Oh,

Sorry Ralf, I must of misunderstood... I'm affraid I can't be of anymore help on this (telnets not my thing, and I'm still learning C# myself)

Best of luck though.

Scott



 
 
nobugz





PostPosted: Visual C# Express Edition, Problem using a consol appication though telnet Top

Sounds like a Telnet server problem. Check if you can start other console programs, like cmd.exe...