Ir para conteúdo
  • Cadastre-se

dev botao

ACBrLibSAT não esta funcionando no windows 11


Gustavo.Vicente
Ver Solução Respondido por Gustavo.Vicente,
  • Este tópico foi criado há 764 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.

Recommended Posts

  • Membros Pro

Prezados, muito boa noite, 

Instalei nosso sistema em um novo cliente e os computadores já vieram com o Windows 11, porém até o presente momento o sistema estava rodando tudo bem utilizando o componente, mas na versão Caixa onde ele emite o cupom fiscal sat deu problema. 

O pessoal foi executar o check-list de testes e se deparou com erros toda a vez que vai se comunicar com o componente. 

O sistema é feito em .Net C#.

Segue abaixo o stack do erro que ocorre na Consulta de Status Operacional. A mesma coisa ocorre se foi emitir o cupom.

Aplicativo: TractioCaixa.exe
Versão do Framework: v4.0.30319
Descrição: O processo foi terminado devido a uma exceção sem tratamento.
Informações da Exceção: System.AccessViolationException
   em ACBrLib.Sat.ACBrSat+<>c__DisplayClass18_0.<ConsultarStatusOperacional>b__0()
   em ACBrLib.Core.ACBrLibHandle.ExecuteMethod[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Func`1<Int32>)

Informações da Exceção: System.ApplicationException
   em ACBrLib.Core.ACBrLibHandle.ExecuteMethod[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Func`1<Int32>)
   em ACBrLib.Sat.ACBrSat.ConsultarStatusOperacional()
   em app_classLibrary.frmConfiguraDLLACBrSAT.BtnConsultarStatus_Click(System.Object, System.EventArgs)
   em System.Windows.Forms.Control.OnClick(System.EventArgs)
   em System.Windows.Forms.Button.OnClick(System.EventArgs)
   em System.Windows.Forms.Button.OnMouseUp(System.Windows.Forms.MouseEventArgs)
   em System.Windows.Forms.Control.WmMouseUp(System.Windows.Forms.Message ByRef, System.Windows.Forms.MouseButtons, Int32)
   em System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
   em System.Windows.Forms.ButtonBase.WndProc(System.Windows.Forms.Message ByRef)
   em System.Windows.Forms.Button.WndProc(System.Windows.Forms.Message ByRef)
   em System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
   em System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
   em System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
   em System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
   em System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
   em System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
   em System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
   em System.Windows.Forms.Application.RunDialog(System.Windows.Forms.Form)
   em System.Windows.Forms.Form.ShowDialog(System.Windows.Forms.IWin32Window)
   em System.Windows.Forms.Form.ShowDialog()
   em app_caixa_win.UC.ucFiscal.Button1_Click(System.Object, System.EventArgs)
   em System.Windows.Forms.Control.OnClick(System.EventArgs)
   em System.Windows.Forms.Button.OnClick(System.EventArgs)
   em System.Windows.Forms.Button.OnMouseUp(System.Windows.Forms.MouseEventArgs)
   em System.Windows.Forms.Control.WmMouseUp(System.Windows.Forms.Message ByRef, System.Windows.Forms.MouseButtons, Int32)
   em System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
   em System.Windows.Forms.ButtonBase.WndProc(System.Windows.Forms.Message ByRef)
   em System.Windows.Forms.Button.WndProc(System.Windows.Forms.Message ByRef)
   em System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
   em System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
   em System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
   em System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
   em System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
   em System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
   em System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
   em System.Windows.Forms.Application.Run(System.Windows.Forms.Form)
   em app_caixa_win.Program.Main()

 

 

Segue a stack do erro na emissão do cupom fiscal na chamada da EnviarCFe

Aplicativo: TractioCaixa.exe
Versão do Framework: v4.0.30319
Descrição: O processo foi terminado devido a uma exceção sem tratamento.
Informações da Exceção: System.AccessViolationException
   em ACBrLib.Sat.ACBrSat+<>c__DisplayClass27_0.<EnviarCFe>b__0()
   em ACBrLib.Core.ACBrLibHandle.ExecuteMethod[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Func`1<Int32>)

Informações da Exceção: System.ApplicationException
   em ACBrLib.Core.ACBrLibHandle.ExecuteMethod[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Func`1<Int32>)
   em ACBrLib.Sat.ACBrSat.EnviarCFe(System.String)
   em app_classLibrary.Servicos.EmitirCupomFiscal(Int32, Int32, Int32, System.String, System.Windows.Forms.DialogResult, app_classLibrary.Backoffice.SGPData, Boolean)
   em app_classLibrary.frmPagamento.ConcluirRecebimento()
   em app_classLibrary.frmPagamento.btnConcluirRecebimento_Click(System.Object, System.EventArgs)
   em System.Windows.Forms.Control.OnClick(System.EventArgs)
   em System.Windows.Forms.Button.OnClick(System.EventArgs)
   em System.Windows.Forms.Button.PerformClick()
   em app_classLibrary.frmPagamento.IncluirValorPago(Boolean)
   em app_classLibrary.frmPagamento.btnAdicionaPagamento_Click(System.Object, System.EventArgs)
   em System.Windows.Forms.Control.OnClick(System.EventArgs)
   em System.Windows.Forms.Button.OnClick(System.EventArgs)
   em System.Windows.Forms.Button.OnMouseUp(System.Windows.Forms.MouseEventArgs)
   em System.Windows.Forms.Control.WmMouseUp(System.Windows.Forms.Message ByRef, System.Windows.Forms.MouseButtons, Int32)
   em System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
   em System.Windows.Forms.ButtonBase.WndProc(System.Windows.Forms.Message ByRef)
   em System.Windows.Forms.Button.WndProc(System.Windows.Forms.Message ByRef)
   em System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
   em System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
   em System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
   em System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
   em System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
   em System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
   em System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
   em System.Windows.Forms.Application.RunDialog(System.Windows.Forms.Form)
   em System.Windows.Forms.Form.ShowDialog(System.Windows.Forms.IWin32Window)
   em System.Windows.Forms.Form.ShowDialog()
   em app_caixa_win.UC.ucCaixa.CliqueBotaoReceber(System.Object, System.EventArgs)
   em System.Windows.Forms.Control.OnClick(System.EventArgs)
   em System.Windows.Forms.Button.OnClick(System.EventArgs)
   em System.Windows.Forms.Button.OnMouseUp(System.Windows.Forms.MouseEventArgs)
   em System.Windows.Forms.Control.WmMouseUp(System.Windows.Forms.Message ByRef, System.Windows.Forms.MouseButtons, Int32)
   em System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
   em System.Windows.Forms.ButtonBase.WndProc(System.Windows.Forms.Message ByRef)
   em System.Windows.Forms.Button.WndProc(System.Windows.Forms.Message ByRef)
   em System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
   em System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
   em System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
   em System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
   em System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
   em System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
   em System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
   em System.Windows.Forms.Application.Run(System.Windows.Forms.Form)
   em app_caixa_win.Program.Main()

 

 

Se alguém já passou por isso e resolveu sem fazer o downgrade para o W10 e puder ajudar agradeço. Salientando que as duas máquinas já vieram com o Windows 11 instalados, no caso não tem opção de downgrade seria necessário instalar o windows 10 nelas.

Link para o comentário
Compartilhar em outros sites

  • Administradores

Bom dia,

Logo o @José M. S. Juniorlhe retorna, mas seria importante anexar o log gerado pela lib.

At.

Consultora SAC ACBr

Juliana Tamizou

Gerente de Projetos ACBr / Diretora de Marketing AFRAC
Ajude o Projeto ACBr crescer - Seja Pro

Projeto ACBr     Telefone:(15) 2105-0750 WhatsApp(15)99790-2976.  Discord

Projeto ACBr - A maior comunidade Open Source de Automação Comercial do Brasil


Participe de nosso canal no Discord e fique ainda mais próximo da Comunidade !!

Link para o comentário
Compartilhar em outros sites

  • Fundadores

Não creio que seja problema no Win11.. pois tem vários usuários que usam ele com a ACBrLib...

O erro parece ser configuração errada, da DLL do SAT...

Você compila sua aplicação em 32 ou 64 bits ?

  • Obrigado 1
Consultor SAC ACBr

Daniel Simões de Almeida
O melhor TEF, é com o Projeto ACBr - Clique e Conheça
Ajude o Projeto ACBr crescer - Assine o SAC

Projeto ACBr     Telefone:(15) 2105-0750 WhatsApp(15)99790-2976.

Link para o comentário
Compartilhar em outros sites

  • Membros Pro
  • Solution
30 minutos atrás, Daniel Simoes disse:

Não creio que seja problema no Win11.. pois tem vários usuários que usam ele com a ACBrLib...

O erro parece ser configuração errada, da DLL do SAT...

Você compila sua aplicação em 32 ou 64 bits ?

Esta compilada em 32 bits.  Vou fazer um teste novo com o demo do SAT. A instalação feita é a mesma nos windows 10.

Link para o comentário
Compartilhar em outros sites

  • Este tópico foi criado há 764 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.
Visitante
Este tópico está agora fechado para novas respostas
×
×
  • Criar Novo...

Informação Importante

Colocamos cookies em seu dispositivo para ajudar a tornar este site melhor. Você pode ajustar suas configurações de cookies, caso contrário, assumiremos que você está bem para continuar.