System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)

when we invoke:
for auxType: TypeInfo in &Assembly.GetExecutingAssembly.DefinedTypes do

this line in a class:
var response: Task<FCM.Net.ResponseContent> = await EnviaPushAsync(Title, Notification, Tokens);

Cause this erro:
Não foi possível carregar o tipo UCBOAtendimento.TBOAtendimento+d__1 do assembly PegasusServer, Version=1.3.0.469, Culture=neutral, PublicKeyToken=null.

Server stack trace:
em System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
em System.Reflection.RuntimeAssembly.get_DefinedTypes()
em UCEstruturaBancoDadosTabelas.TEstruturaBancoDadosTabelas…ctor() na C:\Sistemas\ProjetoPegasusOOPrism\Server\Classes\UCEstruturaBancoDadosTabelas.pas:linha 52
em UCEstruturaBancoDados.TEstruturaBancoDados…ctor() na C:\Sistemas\ProjetoPegasusOOPrism\Server\Classes\UCEstruturaBancoDados.pas:linha 112
em UCBOController.TBOController.EstruturaBancoDados(String& Erro, Boolean Estrutura, Boolean Alimenta, Boolean& PrecionouF1, Boolean reestruturandoforcado) na C:\Sistemas\ProjetoPegasusOOPrism\Server\ClassesBO\UCBOControllerDEF.pas:linha 1102
em System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
em System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]:
em System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
em System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
em UCBOController.TBOController.EstruturaBancoDados(String& Erro, Boolean Estrutura, Boolean Alimenta, Boolean& PrecionouF1, Boolean reestruturandoforcado)
em Server.MainForm…ctor() na C:\Sistemas\ProjetoPegasusOOPrism\Server\UCTMainServerAutenticacao.pas:linha 358

Can we get a (minimal) test case for this?

resolved including async in the method containing the call

1 Like