Ver Mensaje Individual
  #1013  
Antiguo 13-07-2021
Avatar de b4aronDeLaBirr4
b4aronDeLaBirr4 b4aronDeLaBirr4 is offline
Miembro
 
Registrado: jul 2021
Posts: 67
Reputación: 3
b4aronDeLaBirr4 Va por buen camino
Problema FirmaXadEsNet

Buenas! Estoy intentando firmar el documento en C# utilizando FirmaXadEsNet y cuando va a firmar con el certificado seleccionado, aparece este error:

Código PHP:
ERROR 2021-07-13 14:13:47,193 [26   Mvc.ExceptionHandling.AbpExceptionFilter Unable to cast object of type 'System.Security.Cryptography.RSACng' to type 'System.Security.Cryptography.RSACryptoServiceProvider'.
System.InvalidCastExceptionUnable to cast object of type 'System.Security.Cryptography.RSACng' to type 'System.Security.Cryptography.RSACryptoServiceProvider'.
   
at FirmaXadesNet.Crypto.Signer.SetSigningKey(X509Certificate2 certificate)
   
at FirmaXadesNet.Crypto.Signer..ctor(X509Certificate2 certificate
No sé si a alguien le ha ocurrido o le suena. He estado leyendo por ahí cosillas pero de momento nada lo ha resuelto así que cualquier comentario sobre el tema sería de ayuda!
Responder Con Cita