本文介绍了协议版本不受支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 7上运行应用程序时遇到异常:

I encountered an exception when running an application on Windows 7:

代码:

skt = new Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);

skt.Connect(ipAddress,7000);

skt = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
skt.Connect(ipAddress, 7000);

投掷  "不支持"procotol版本"例外。

threw  "procotol version is not supported" exception.

相同的应用程序在Windows XP上正常运行。

The same application runs correctly on Windows XP.

我需要在Windows 7上进行任何设置,或者我需要更改我的C#代码?

Is there any settings I need to do on Windows 7, or I need to change my C# code?

 

非常感谢!

推荐答案

 


这篇关于协议版本不受支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 09:56
查看更多