PRECISO DE UM XML PARA EFETUAR O CANCELAMENTO DE UM CTE

102 views
Skip to first unread message

Super Interior

unread,
Nov 24, 2020, 10:05:06 AM11/24/20
to UniNFe
oque estou fazerndo de errado

<?xml version="1.0" encoding="utf-8"?>
<eventoCTe xmlns="http://www.portalfiscal.inf.br/cte" versao="3.00">
<infEvento Id="" & TXT_CHAVE_CTE.Text & "">
<cOrgao>35</cOrgao>
<tpAmb>" & MEU_CTE_TIPO & "</tpAmb>
<CNPJ>" & MEU_DOC1 & "</CNPJ>
<chCTe>" & TXT_CHAVE_CTE.Text & "</chCTe>
<dhEvento>" & TRATAR_DATA2(Now) & "T" & hora & "-0" & MEU_NFE_HORARIO & ":00</dhEvento>
<tpEvento>110111</tpEvento>
<nSeqEvento>1</nSeqEvento>
<detEvento versaoEvento="3.00">
<evCancCTe>
<descEvento>Cancelamento</descEvento>
<nProt>" & TXT_CTE_PROTOCOLO.Text & "</nProt>
<xJust>" & TXTCANCELAR.Text & "</xJust>
</evCancCTe>
</detEvento>
</infEvento>
</eventoCTe>


ele retorna o seginte erro

Versão|5.1.0.71
ErrorCode|0000000000
Message|Elemento Reference mal formado.
StackTrace|   em System.Security.Cryptography.Xml.Reference.CalculateHashValue(XmlDocument document, CanonicalXmlNodeList refList)
   em System.Security.Cryptography.Xml.SignedXml.BuildDigestedReferences()
   em System.Security.Cryptography.Xml.SignedXml.ComputeSignature()
   em NFe.Certificado.AssinaturaDigital.Assinar(XmlDocument conteudoXML, String tagAssinatura, String tagAtributoId, X509Certificate2 x509Cert, Int32 empresa, AlgorithmType algorithmType, Boolean comURI)
   em NFe.Certificado.AssinaturaDigital.Assinar(XmlDocument conteudoXML, Int32 emp, Int32 UFCod, AlgorithmType algorithmType, Boolean comURI)
   em NFe.Service.TaskCTeEventos.Execute()
Source|System.Security
Type|System.Security.Cryptography.CryptographicException
TargetSite|Byte[] CalculateHashValue(System.Xml.XmlDocument, System.Security.Cryptography.Xml.CanonicalXmlNodeList)
HashCode|42939292




Fabio de Oliveira Vaz

unread,
Nov 24, 2020, 10:11:33 AM11/24/20
to uni...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "UniNFe" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uninfe+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/uninfe/7aeb8118-df64-41c0-aa86-3ccd50fa5243n%40googlegroups.com.

Super Interior

unread,
Nov 24, 2020, 11:03:46 AM11/24/20
to UniNFe
OPA MUITO OBRIGADO 1000% DEU CERTO
Reply all
Reply to author
Forward
0 new messages