I am getting the below error on signedXml.CheckSignature(certificate, true) line.
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=System.Security.Cryptography.Xml
StackTrace:
at System.Security.Cryptography.Xml.SignedXml.IsKeyTheCorrectAlgorithm(AsymmetricAlgorithm key, Type expectedType)
I am getting the below error on signedXml.CheckSignature(certificate, true) line.
System.NullReferenceException HResult=0x80004003 Message=Object reference not set to an instance of an object. Source=System.Security.Cryptography.Xml StackTrace: at System.Security.Cryptography.Xml.SignedXml.IsKeyTheCorrectAlgorithm(AsymmetricAlgorithm key, Type expectedType)
Can you please guide me on this?