We have recently migrated our windows servers from 2008 to 2019 and the component space library (componentspace.saml2.dll) from version 126.96.36.199 to 188.8.131.52. Our .Net framework version was also updated from 4.0.3 to 4.7.2.
Now the issue is, in the environment where we have installed the certificate that uses sha256RSA to generate the signature, getting an exception with the error "Failed to generate the XML signature. ---> System.Security.Cryptography.CryptographicException: Invalid algorithm specified." However this works fine in the old environment (2008 windows server).
Here are the screenshots for the certificate we have been using in our environment. Request you to please take a look and guide us in the right direction of what next steps to be taken and what could be the issue happening in the new environment.