Forum
See question

Erro a emitir fatura com motores Microsoft.CSharp.RuntimeBinder.RuntimeBinder.Bind   

14 views
0
0

Bom dia,

efetuamos nova instalacao do PPrimavera V10 em novo servidor tendo ficado tudo a funcionar no postos dos colaboradores.

relativamente a aplicacao desenvolvida em .net para integracao e emissao de faturas atraves dos motores de integracao do Primavera estou com um erro bastante estranho.

a mensagem da excepção é “Ocorreu uma excepção inesperada ao vincular uma operação dinâmica”

A source da excepção é Microsoft.CSharp e ao analisar o stacktrace tenho seguinte:

em Microsoft.CSharp.RuntimeBinder.RuntimeBinder.Bind(DynamicMetaObjectBinder payload, IEnumerable`1 parameters, DynamicMetaObject[] args, DynamicMetaObject& deferredBinding)
em Microsoft.CSharp.RuntimeBinder.BinderHelper.Bind(DynamicMetaObjectBinder action, RuntimeBinder binder, IEnumerable`1 args, IEnumerable`1 arginfos, DynamicMetaObject onBindingError)
em Microsoft.CSharp.RuntimeBinder.CSharpInvokeMemberBinder.FallbackInvokeMember(DynamicMetaObject target, DynamicMetaObject[] args, DynamicMetaObject errorSuggestion)
em System.Dynamic.DynamicMetaObject.BindInvokeMember(InvokeMemberBinder binder, DynamicMetaObject[] args)
em System.Dynamic.InvokeMemberBinder.Bind(DynamicMetaObject target, DynamicMetaObject[] args)
em System.Dynamic.DynamicMetaObjectBinder.Bind(Object[] args, ReadOnlyCollection`1 parameters, LabelTarget returnLabel)
em System.Runtime.CompilerServices.CallSiteBinder.BindCore[T](CallSite`1 site, Object[] args)
em System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid2[T0,T1](CallSite site, T0 arg0, T1 arg1)
em FuncoesComuns100.clsBSDocumentos.RateiaDescontosEmValor(Object DocumentoOriginal)
em VndBS100.VndBSVendas.CalculaValoresTotais(VndBEDocumentoVenda clsDocumentoVenda)
em VndBS100.VndBSVendas.CalculaTotaisDocumento(VndBEDocumentoVenda DocVenda)
em VndBS100.VndBSVendas.PreencheDadosActualiza(VndBEDocumentoVenda DocumentoVenda, VndBETabVenda& TabVenda, BasBESerie& Serie, String& SerieLiq, Int32& Multiplicador)
em VndBS100.VndBSVendas.Actualiza(VndBEDocumentoVenda clsDocumentoVenda, String& strAvisos, String& IdDocLiqRet, String& IdDocLiqRetGar, Boolean blnPreencheDadosRelacionados)
em VndBS100.VndBSVendas.Actualiza(VndBEDocumentoVenda clsDocumentoVenda, String& strAvisos)
em Faturas_Accountive.Form1.Pri_Create_Invoice(String BD, DataRow InfoDocVenda) em E:\DELTASYS\Projectos VBA\Projecto Faturas Accountive\GestorPrimavera\GestorPrimavera\Form1.vb:line 1522

A referencia para a dll microsoft.csharp foi adicionada ao projecto assim como todas as dlls necessárias do primavera.

inclusive antes de tentar emitir a fatura efetuei a validacao

If Motor.Vendas.Documentos.ValidaActualizacao(Doc, r, “”, stravisos,) Then

Motor.Vendas.Documentos.Actualiza(Doc, stravisos)

end if

nao tendo recebido nenhum aviso.

 

Agradeço desde já a vossa ajuda.

 

Faça login para poder traduzir
Integration
V10
Marked as spam
Created 3 months and 1 week ago nunomartins
nunomartins Iniciante