"Invalid Provider Type Specified" Exception Error

We’re migrating our website to a new host and I’m configuring the new servers for our ComponentSpace SSO application. I’ve set the permisssions on the MachineKeys folder and imported the .pfx copy of the X.509 certificate to the Personal certificate store. When I try to run the SSO I get an exception error I haven’t encountered before:

Message: Invalid provider type specified.
Exception type: System.Security.Cryptography.CryptographicException
Stack trace:
at System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer)
at System.Security.Cryptography.Utils.GetKeyPairHelper(CspAlgorithmType keyType, CspParameters parameters, Boolean randomKeyContainer, Int32 dwKeySize, SafeProvHandle& safeProvHandle, SafeKeyHandle& safeKeyHandle)
at System.Security.Cryptography.RSACryptoServiceProvider.GetKeyPair()
at System.Security.Cryptography.RSACryptoServiceProvider…ctor(Int32 dwKeySize, CspParameters parameters, Boolean useDefaultKeySize)
at System.Security.Cryptography.X509Certificates.X509Certificate2.get_PrivateKey()
at ComponentSpace.SAML2.Utility.Certificate.GetPrivateKey(X509Certificate2 x509Certificate)
at ComponentSpace.SAML2.InternalSAMLIdentityProvider.CreateSAMLResponse(String userName, SAMLAttribute[] attributes, String authnContext, Status status, String assertionConsumerServiceUrl)
at ComponentSpace.SAML2.InternalSAMLIdentityProvider.InitiateSSO(HttpResponse httpResponse, String userName, SAMLAttribute[] attributes, String authnContext, String relayState, String partnerSP, String assertionConsumerServiceUrl)
at ComponentSpace.SAML2.SAMLIdentityProvider.InitiateSSO(HttpResponse httpResponse, String userName, IDictionary attributes, String relayState, String partnerSP)

This didn’t happen on our existing servers, so I’m not certain how to fix it. Please advise.

Please take a look at:

https://www.componentspace.com/Forums/11033/SystemSecurityCryptographyCryptographicException-Invalid-provider-type-specified

Let me know if that resolves the issue.

[quote]
ComponentSpace - 2/15/2023
[/quote]

Problem solved. Thanks for the quick response.

You’re welcome. Thanks for the update.