A call to SSPI Failed - The message received was unexpected or badly formatted

Lars Hetner Møller Mortensen 1 Reputation point
2022-06-23T13:36:38.993+00:00

Hi

My company is developing a standard Win32 C# program, which "of cause" works as it should.
It installs and run fin on our internal manilla Windows 2022 servers, but when creating a Azure VM with Server 2022 image (Not "for Azure image", that normal one), when the client.exe starts and tries to connect to the server it gives the following error:
214326-image.png

The connection is s SSL1.2 using a RSA4096/SHA512 certificate.

Can someone help with what is different on the Azure install than a normel "CD installed" Windows Server 2022

Regards Lars Mortensen

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,001 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,234 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Cristian SPIRIDON 4,481 Reputation points
    2022-06-24T14:04:37.457+00:00

    Hi,

    There is another thread that discuss SSPI issues:
    https://learn.microsoft.com/en-us/answers/questions/571511/ssrs-a-call-to-sspi-failed-see-inner-exceptionmail.html

    Maybe TLS 1.2 with RSA4096/SHA512 is not supported/configured on Azure machine.

    Hope this helps!

    0 comments No comments

  2. Limitless Technology 39,676 Reputation points
    2022-06-24T16:01:06.717+00:00

    Hi LarsHetnerMllerMortensen-4667,

    You may be running into enhanced security on the Azure installed Server 2022. If InTune is being used, it's likely that your security certificate is not working as you would expect.

    There are other differences as outlined in this document:

    https://learn.microsoft.com/en-us/windows-server/get-started/editions-comparison-windows-server-2022

    I hope this answers your question.

    -------------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

  3. Nie, Chuan (C.) 0 Reputation points
    2024-07-30T03:01:24.5566667+00:00

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.