Welcome to the Panopto Community

Please note: All new registrants to the Panopto Community Forum must be approved by a forum moderator or admin. As such, if you navigate to a feature that is members-only, you may receive an error page if your registration has not yet been approved. We apologize for any inconvenience and are approving new members as quickly as possible.

Panopto-BatchUserCreationWithGroupGUI - Changing server address in App.config

Hello,

I am new to using the Panopto API and the tool in general. I am currently trying to use the GitHub project from the Panopto GitHub page, Panopto-BatchUserCreationWithGroupGUI, to add a batch of users from a csv file and it appears to be capable of doing exactly what I need. I believe the problem I am encountering has to do with the server endpoints in the App.config. I do not know what to change them to. I have tried changing them from pointing at the test server to pointing at my server but I receive the error:

"An error occured while making the HTTP request to https://mycompany.ca.panopto.com/Panopto/PublicAPI/4.6/SessionManagement.svc. This could be due to the fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the sever"

I'd post the full endpoints but I can't so I cut out the https and the ender

<client>
            <endpoint address="https://mycompany.ca.panopto.com/Panopto/PublicAPI/4.6/AccessManagement.svc"
        binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IAccessManagement"
        contract="PanoptoAccessManagement.IAccessManagement" name="BasicHttpBinding_IAccessManagement" />
            <endpoint address="https://mycompany.ca.panopto.com/Panopto/PublicAPI/4.6/UserManagement.svc"
        binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IUserManagement"
        contract="PanoptoUserManagement.IUserManagement" name="BasicHttpBinding_IUserManagement" />
            <endpoint address="https://mycompany.ca.panopto.com/Panopto/PublicAPI/4.6/SessionManagement.svc"
        binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ISessionManagement"
        contract="PanoptoSessionManagement.ISessionManagement" name="BasicHttpBinding_ISessionManagement" />
    </client>

I was unable to find any resources for this error, but I may have missed something so please let me know if I have.

Best Answer

  • Graham RobinsonGraham Robinson Crackerjack
    edited June 2021 Answer ✓

    I expect the code you are running is built to an earlier version of .net than has TLS1.2 as default.

    Try adding

                // TLS 1.2 fix
                // https://stackoverflow.com/questions/2859790/the-request-was-aborted-could-not-create-ssl-tls-secure-channel
                ServicePointManager.Expect100Continue = true;
                ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
    

    before the first communication with Panopto

Sign In or Register to comment.