How can I connect to server using SSL(secure socket layer) on .NET Compact Framework

Posted by net on Stack Overflow See other posts from Stack Overflow or by net
Published on 2010-03-29T04:28:40Z Indexed on 2010/03/29 4:33 UTC
Read the original article Hit count: 444

Filed under:
|
|

Hello.

I want to change .NET framework v3.5 to .NET compact framework v3.5. But I can't change SSL Stream class to compact framework version. For resolving this problem, I already read some article and msdn library.

http://blogs.msdn.com/cgarcia/archive/2009/08/21/enable-ssl-for-managed-socket-on-windows-mobile.aspx

http://blogs.msdn.com/cgarcia/archive/2009/08/22/getting-a-managed-socket-to-talk-ssl.aspx

http://msdn.microsoft.com/en-us/library/aa916117.aspx

but I got an error that is "Unkown error 0x0ffffff", when invoking 'socket.connect(endPoint)' method based on thease article. In order to find the proper method, I try to use TcpClient class. but i can't solve this problem.

When I try to connect to server on .NET compact framework, TcpClient class didn't work(Smart Device project and windows ce). As you can see below, I've got the error. In other hand, this code is work on .NET framework(C# console project).

I can't understand why this socket can not access to server.

alt text

alt text

Thanks for reading my question.

© Stack Overflow or respective owner

Related posts about compact-framework

Related posts about .NET