Groups | Blog | Home
all groups > dotnet compact framework > july 2007 >

dotnet compact framework : TcpClient dont work in CF1.1


Benjamin
7/27/2007 5:08:35 AM
Hello,

i got problems with the TcpClient in CF1.1 (WinCE 4.2) When i try to
connect to a server i got immedently the exception "No such host is
known". If i try the same code in Framework 1.1 (WinXP) or in Compact
Framework 2.0 (WinCE 5.0) it works.

code*

client = New TcpClient(ServerName, Port)

code*

Some people say to me, there was a unsolved problem in the CF 1.1, is
this right?
any workaround?

Please Help

Best Regards Benjamin Wagner
Paul G. Tobey [eMVP]
7/27/2007 8:33:27 AM
How are you connected to the network? What name are you passing in
ServerName? It does work, generally. As Peter asked, what actual version
are you using (there's no such thing as .NET CF 1.1)?

Paul T.

[quoted text, click to view]

Peter Foot [MVP]
7/27/2007 2:12:10 PM
Firstly, are you running the latest Service Pack (SP3)? Although I don't see
any fixes related to TcpClient in the list:-
http://peterfoot.net/ServicePacksAndFixes.aspx

Are you able to resolve the IP address using the Dns class?

Peter

--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility

[quoted text, click to view]
AddThis Social Bookmark Button