none
TLS 1.2 enabled-Infopath Form Issue RRS feed

  • Question

  • Hi Team, we are having issue with InfoPath form connection to udc file calling the getuserprofile service after we enabled TLS1.2 on the server. I get the below errors. Can you please suggest a resolution.

    • Web Request: Ends url=https://sitecollection/_vti_bin/userprofileservice.asmx action=http://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetUserProfileByName
    • Data adapter failed during OnLoad: The request was aborted: Could not create SSL/TLS secure channel.
    • The following query failed: GetUserProfileByName (User: domain\user, Form Name: Formname New, IP: , Connection Target: https://sitecollection/Connections/GetUserProfileByName.udcx, Request: http://sitecollection/newifs.aspx?List=ListID&Source=https://sitecollection/Pages/home.aspx&RootFolder=&Web=webID, Form ID: urn:schemas-microsoft-com:office:infopath:QA-New:-dataFormSolution Type: DataAdapterException, Exception Message: The request was aborted: Could not create SSL/TLS secure channel. The request was aborted: Could not create SSL/TLS secure channel.)

    • Watson bucket parameters: SharePoint Server 2013, ULSException14, 41b7c39f "infopath forms services", 0f0011db "15.0.4571.0", 18b0be27 "system", 04070c76 "4.7.3190.0", 5b694809 "tue aug 07 02:19:37 2018", 00000a1c "00000a1c", 00000283 "00000283", 4380fbf4 "webexception", 003032df "amdl5"

    • System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.   

    at System.Net.HttpWebRequest.GetResponse()   

    at Microsoft.Office.InfoPath.Server.SolutionLifetime.WebServiceHelper.GetResponseHelper(WebRequest request, DataAdapterCredentials credentials, Stopwatch timer, ExecWebRequestExceptionState state, String adapterName, Boolean isQuery)   

    at Microsoft.Office.InfoPath.Server.SolutionLifetime.WebServiceHelper.ExecWebRequestSync(XPathNavigator inputSubDOM, Boolean[] inputUseDataset, XPathNavigator resultsSubDOM, Boolean resultUseDataset, XPathNavigator errorsSubDOM, Uri serviceUrl, Uri soapAction, Int64 timeOutMillisec, DataAdapter adapter, Document document, DataAdapterCredentials credentials, Boolean useDcl, Boolean useProxy, Boolean useSelf) StackTrace:

    at Microsoft.Office.Server.Native.dll: (sig=9afccfd8-248d-4fb9-a01a-c8bacd6f7473|2|microsoft.office.server.native.pdb, offset=135DA)

    at Microsoft.Office.Server.Native.dll: (offset=21F8D)


    Sudheer

    Thursday, November 8, 2018 9:09 PM

All replies

  • Hi Sudheer Chittuluri,

    Thank you for posting here.

    >>we are having issue with InfoPath form connection to udc file calling the getuserprofile service after we enabled TLS1.2 on the server.

    For your question, has this error happened before? What is the .net framework version? Why do you need to specify the TLS version?

    If the TLS version has no effect to your application, you could try the code below instead.

    System.Net.ServicePointManager.SecurityProtocol =    SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12|SecurityProtocolType.Tls|SecurityProtocolType.Ssl3;

    Best Regards,

    Wendy


    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.

    • Proposed as answer by Stanly Fan Tuesday, December 4, 2018 8:25 AM
    Friday, November 9, 2018 7:16 AM
    Moderator