خطای the requested security protocol is not supported
	
	
		سلام
وقت بخیر
من از کد زیر برای ارسال اطلاعات به سایت استفاده می کنم.
try
{
    ServicePointManager.ServerCertificateValidationCal  lback = delegate { return true; };
    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Ssl3;
    WebRequest req = WebRequest.Create(site);
    req.ContentType = "application/x-www-form-urlencoded";
    req.Method = "POST";
    byte[] bytes = Encoding.UTF8.GetBytes("data=" + "null");
    req.ContentLength = bytes.Length;
    Stream os = req.GetRequestStream();
    os.Write(bytes, 0, bytes.Length);
    os.Close();
    WebResponse resp = req.GetResponse();
    StreamReader sr = new StreamReader(resp.GetResponseStream());
    MessageBox.Show(sr.ReadToEnd().Trim());
}
catch (Exception exc)
{
    MessageBox.Show(exc.Message.ToString());
}
برنامه روی کامپیوتر خودم مشکلی نداره اما روی کامپیوتر مشتری خطای the requested security protocol is not supported میدهد.
کد رو بصورت زیر تغییر دادم
try
{
    WebRequest req = WebRequest.Create(site);
    req.ContentType = "application/x-www-form-urlencoded";
    req.Method = "POST";
    byte[] bytes = Encoding.UTF8.GetBytes("data=" + "null");
    req.ContentLength = bytes.Length;
    Stream os = req.GetRequestStream();
    os.Write(bytes, 0, bytes.Length);
    os.Close();
    WebResponse resp = req.GetResponse();
    StreamReader sr = new StreamReader(resp.GetResponseStream());
    MessageBox.Show(sr.ReadToEnd().Trim());
}
catch (Exception exc)
{
    MessageBox.Show(exc.Message.ToString());
}
اما مجددا همان خطا رو داد.
سیستم عامل مشتری ویندوز 7 و دات نت 4 هم نصب شده است، با دات نت 4.5 هم تست کردم رفع نشد.
لطفن برای حل این مشکل راهنمایی بفرمایید.
	 
	
	
	
		نقل قول: خطای the requested security protocol is not supported
	
	
	
	
	
		نقل قول: خطای the requested security protocol is not supported
	
	
		مشکل با استفاده فقط از SecurityProtocolType.Tls حل شد.
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls