协议版本不受支持 [英] protocol version is not supported

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

问题描述

我在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?

 

非常感谢!

推荐答案

这看起来很不寻常,我在互联网上找不到相关信息。 您能否获取并发布完整的堆栈跟踪。 谢谢。

That seems unusual, and I couldn't find info on it on the Internet.  Could you please obtain and post the complete stack trace.  Thanks.

 


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆