Ir para conteúdo
  • Cadastre-se

dev botao

ACBrLibBoleto - Campo nosso número preenchido com dados inválidos.


JACKSON DOUGLAS
  • Este tópico foi criado há 496 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.

Recommended Posts

  • Consultores
11 minutos atrás, JACKSON DOUGLAS disse:

Compilamos todas as DLLs no LAZARUS sem nenhum problema 😃

Usamos as atualizadas para DOWNLOADS e o problema é o mesmo

@JACKSON DOUGLAS boa tarde !
Fizemos um vídeo mostrando uso das INI's no C#, vou postar o link aqui:
https://cloud.projetoacbr.com.br/index.php/s/YtTqg7tTAHCRtm8
Os arquivos INI são os mesmos que o Antonio lhe enviou anteriormente.
Lembrando que vc deve utilizar as suas chaves e os dados de testes fornecido pelo BB.

Consultor SAC ACBr

Daniel de Morais (Infocotidiano)
Ajude o Projeto ACBr crescer - Assine o SAC

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

Link para o comentário
Compartilhar em outros sites

Olá, bom dia.

Quanto tentei rodar o Demo aparece essa mensagem:

image.thumb.png.8fcd3fcc47a46f6518d0b3dc31028a98.png

Consulte o final desta mensagem para obter detalhes sobre como chamar a 
depuração just-in-time (JIT) em vez desta caixa de diálogo.

************** Texto de Exceção **************
System.FormatException: A cadeia de caracteres de entrada não estava em um formato correto.
   em System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   em System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   em System.Convert.ToInt32(String value)
   em ACBrLib.Core.ACBrLibHandle.ConvertValue[T](String value)
   em ACBrLib.Boleto.ACBrBoleto.ConfigLerValor[T](ACBrSessao eSessao, String eChave)
   em ACBrLib.Core.Config.ACBrLibConfigBase`1.GetProperty[TProp](String propertyName)
   em ACBrLib.Boleto.ImpressaoConfig.get_Layout()
   em ACBrLibBoleto.Demo.FrmMain.LoadConfig() na C:\lazarus\components\acbr\Projetos\ACBrLib\Demos\C#\Boleto\Demo\ACBrLibBoleto.Demo\FrmMain.cs:linha 82
   em ACBrLibBoleto.Demo.FrmMain.FrmMain_Shown(Object sender, EventArgs e) na C:\lazarus\components\acbr\Projetos\ACBrLib\Demos\C#\Boleto\Demo\ACBrLibBoleto.Demo\FrmMain.cs:linha 70
   em System.Windows.Forms.Form.OnShown(EventArgs e)
   em System.Windows.Forms.Form.CallShownEvent()
   em System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   em System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   em System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   em System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   em System.Windows.Forms.Control.InvokeMarshaledCallbacks()


************** Assemblies Carregados **************
mscorlib
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.8.9105.0 built by: NET481REL1LAST_C
    Base de Código: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
ACBrLibBoleto.Demo
    Versão do Assembly: 1.0.0.0
    Versão do Win32: 1.0.0.0
    Base de Código: file:///C:/lazarus/components/acbr/Projetos/ACBrLib/Demos/C%23/Boleto/Demo/ACBrLibBoleto.Demo/bin/Debug/ACBrLibBoleto.Demo.exe
----------------------------------------
ACBrLib.Boleto
    Versão do Assembly: 0.2.0.97
    Versão do Win32: 0.2.0.97
    Base de Código: file:///C:/lazarus/components/acbr/Projetos/ACBrLib/Demos/C%23/Boleto/Demo/ACBrLibBoleto.Demo/bin/Debug/ACBrLib.Boleto.DLL
----------------------------------------
ACBrLib.Core
    Versão do Assembly: 1.2.0.0
    Versão do Win32: 1.2.0.0
    Base de Código: file:///C:/lazarus/components/acbr/Projetos/ACBrLib/Demos/C%23/Boleto/Demo/ACBrLibBoleto.Demo/bin/Debug/ACBrLib.Core.DLL
----------------------------------------
System.Windows.Forms
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.8.9075.0 built by: NET481REL1LAST_C
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.8.9065.0 built by: NET481REL1LAST_C
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.8.9032.0 built by: NET481REL1
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.8.9032.0 built by: NET481REL1
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.8.9115.0 built by: NET481REL1LAST_B
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.8.9032.0 built by: NET481REL1
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.8.9032.0 built by: NET481REL1
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
mscorlib.resources
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.8.9032.0 built by: NET481REL1
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_pt-BR_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
System.Windows.Forms.resources
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.8.9032.0 built by: NET481REL1
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_pt-BR_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** Depuração JIT **************
Para habilitar a depuração just-in-time (JIT), o arquivo .config deste
aplicativo ou computador (machine.config) deve ter o valor
jitDebugging definido na seção system.windows.forms.
O aplicativo também deve ser compilado com a depuração
habilitada.

Por exemplo:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Quando a depuração JIT está habilitada, qualquer exceção sem tratamento
será enviada ao depurador JIT registrado no computador,
em vez de ser tratada nesta caixa de diálogo.

Antes de testar, puxei as atualizações do SVN e compilei o Demo C#. 

Link para o comentário
Compartilhar em outros sites

  • Consultores
3 horas atrás, JACKSON DOUGLAS disse:

Olá, bom dia.

Quanto tentei rodar o Demo aparece essa mensagem:

image.thumb.png.8fcd3fcc47a46f6518d0b3dc31028a98.png

Consulte o final desta mensagem para obter detalhes sobre como chamar a 
depuração just-in-time (JIT) em vez desta caixa de diálogo.

************** Texto de Exceção **************
System.FormatException: A cadeia de caracteres de entrada não estava em um formato correto.
   em System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   em System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   em System.Convert.ToInt32(String value)
   em ACBrLib.Core.ACBrLibHandle.ConvertValue[T](String value)
   em ACBrLib.Boleto.ACBrBoleto.ConfigLerValor[T](ACBrSessao eSessao, String eChave)
   em ACBrLib.Core.Config.ACBrLibConfigBase`1.GetProperty[TProp](String propertyName)
   em ACBrLib.Boleto.ImpressaoConfig.get_Layout()
   em ACBrLibBoleto.Demo.FrmMain.LoadConfig() na C:\lazarus\components\acbr\Projetos\ACBrLib\Demos\C#\Boleto\Demo\ACBrLibBoleto.Demo\FrmMain.cs:linha 82
   em ACBrLibBoleto.Demo.FrmMain.FrmMain_Shown(Object sender, EventArgs e) na C:\lazarus\components\acbr\Projetos\ACBrLib\Demos\C#\Boleto\Demo\ACBrLibBoleto.Demo\FrmMain.cs:linha 70
   em System.Windows.Forms.Form.OnShown(EventArgs e)
   em System.Windows.Forms.Form.CallShownEvent()
   em System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   em System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   em System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   em System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   em System.Windows.Forms.Control.InvokeMarshaledCallbacks()


************** Assemblies Carregados **************
mscorlib
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.8.9105.0 built by: NET481REL1LAST_C
    Base de Código: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
ACBrLibBoleto.Demo
    Versão do Assembly: 1.0.0.0
    Versão do Win32: 1.0.0.0
    Base de Código: file:///C:/lazarus/components/acbr/Projetos/ACBrLib/Demos/C%23/Boleto/Demo/ACBrLibBoleto.Demo/bin/Debug/ACBrLibBoleto.Demo.exe
----------------------------------------
ACBrLib.Boleto
    Versão do Assembly: 0.2.0.97
    Versão do Win32: 0.2.0.97
    Base de Código: file:///C:/lazarus/components/acbr/Projetos/ACBrLib/Demos/C%23/Boleto/Demo/ACBrLibBoleto.Demo/bin/Debug/ACBrLib.Boleto.DLL
----------------------------------------
ACBrLib.Core
    Versão do Assembly: 1.2.0.0
    Versão do Win32: 1.2.0.0
    Base de Código: file:///C:/lazarus/components/acbr/Projetos/ACBrLib/Demos/C%23/Boleto/Demo/ACBrLibBoleto.Demo/bin/Debug/ACBrLib.Core.DLL
----------------------------------------
System.Windows.Forms
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.8.9075.0 built by: NET481REL1LAST_C
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.8.9065.0 built by: NET481REL1LAST_C
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.8.9032.0 built by: NET481REL1
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.8.9032.0 built by: NET481REL1
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.8.9115.0 built by: NET481REL1LAST_B
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.8.9032.0 built by: NET481REL1
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.8.9032.0 built by: NET481REL1
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
mscorlib.resources
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.8.9032.0 built by: NET481REL1
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_pt-BR_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
System.Windows.Forms.resources
    Versão do Assembly: 4.0.0.0
    Versão do Win32: 4.8.9032.0 built by: NET481REL1
    Base de Código: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_pt-BR_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** Depuração JIT **************
Para habilitar a depuração just-in-time (JIT), o arquivo .config deste
aplicativo ou computador (machine.config) deve ter o valor
jitDebugging definido na seção system.windows.forms.
O aplicativo também deve ser compilado com a depuração
habilitada.

Por exemplo:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Quando a depuração JIT está habilitada, qualquer exceção sem tratamento
será enviada ao depurador JIT registrado no computador,
em vez de ser tratada nesta caixa de diálogo.

Antes de testar, puxei as atualizações do SVN e compilei o Demo C#. 

image.png

Parece ser alguma exceção ao tentar carregar as informações ACBrLib.ini e Titulos.ini para o programa exemplo utilizando o LoadConfig.
Você esta utilizando o programa exemplo em memory ou carregando ACBrLib.ini manualmente ? Imagem acima estou utilizando ACBrLib.ini manualmente.
image.png

Link para o comentário
Compartilhar em outros sites

  • Este tópico foi criado há 496 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.

The popup will be closed in 10 segundos...
The popup will be closed in 10 segundos...