TLS 1.2 RRS feed

  • Question

  • This code actually works if you are using .Net 4.0 and System.Xml.  I get 0 errors after adding it.

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Security.Authentication;
    using System.Net;

    namespace UPSShipping
        public partial class _Default : System.Web.UI.Page
            const SslProtocols _Tls12 = (SslProtocols)0xc00;
            const SecurityProtocolType Tls12 = (SecurityProtocolType)_Tls12;
            protected void Page_Load(object sender, EventArgs e)

            protected void cmdSubmit_Click(object sender, EventArgs e)
                    ServicePointManager.SecurityProtocol = Tls12;
                       'Call your ups code for pricing here.

                catch (Exception ex)

    Wednesday, January 24, 2018 6:09 PM

All replies

  • Hi Stephens2018,

    Thank you for posting here.

    According to your description, your question is more related to ASP.NET, you could post a new thread in ASP.NET forum for suitable support.

    The CLR Forum discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection. Also discuss all the other Microsoft libraries that are built on or extend the .NET Framework, including Managed Extensibility Framework (MEF), Charting Controls, CardSpace, Windows Identity Foundation (WIF), Point of Sale (POS), Transactions.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Saturday, January 27, 2018 7:35 AM