Autodesk-Forge / forge-viewhubs-desktop

Autodesk design file explorer for desktop: Demonstrates a desktop application that shows BIM 360 Team, BIM 360 Docs and Fusion Team hubs, which respective Projects, Folders, Items and Versions
MIT License
38 stars 30 forks source link

TLS1.2 change on Oct 31st 2018 (SOLVED) #4

Closed OMH2Share closed 5 years ago

OMH2Share commented 5 years ago

Because of the TLS1.2 requirement, you need a vital change in order to run the solution. In cloud\Global.asax.cs

This is due to RestSharp that is compiled using .Net4.0, where TLS1.2 is NOT default. Newer version than 106.3.1 of RestSharp does not seem to work

        void Application_Start(object sender, EventArgs e)
        {
            // Enforce TLS1.2
            System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;

            // Code that runs on application startup
            GlobalConfiguration.Configure(WebApiConfig.Register);
        }
augustogoncalves commented 5 years ago

thanks, @OMH2Share, I'll check that and fix it. The project is compiling with 4.6, but (my mistake) the reference is using 4.5.2