Publicado el Dejar un comentario

Solución a la función genera factura

Error al generar la factura: Error en la función genera factura: System.Security.Cryptography.CryptographicException: m_safeCertContext es un controlador no válido.
en System.Security.Cryptography.X509Certificates.X509Certificate.ThrowIfContextInvalid()
en System.Security.Cryptography.X509Certificates.X509Certificate.get_SerialNumber()
en System.Security.Cryptography.X509Certificates.X509Certificate.GetSerialNumberString()
en System.Security.Cryptography.X509Certificates.X509Certificate2.get_SerialNumber()
en CFDI33.Certificado.serialNumberAsAscii()
en CFDI33.CFDI33.generaFacturaElectronica(String ArchivoFormato, String xmlString, String datosAdicionales, String correo, String ventas)

Causa: el correo está mal

Solución. Revisar el correo del cliente

Deja un comentario