Skip to content

[N4] CallFromNative Error on RPCServer #1020

@vncoelho

Description

@vncoelho

After adaptation from @ajara87, the client is indeed running, but for RPCServer it is returning some errors, like:

ERROR [14:15:41.638] 	Failed to load plugin assembly RpcServer: System.TypeLoadException: Method 'CallFromNative' in type 'Neo.Plugins.RpcServer.Diagnostic' from assembly 'RpcServer, Version=4.0.0.0,  Culture=neutral,  PublicKeyToken=null' does...in.cs:line  185
NEO-CLI v4.0.0  -  NEO v4.0.0  -  NEO-VM v3.9.0

neo> Unhandled exception. System.TypeInitializationException: The type initializer for 'Neo.NeoSystem' threw an exception.
 ---> System.TypeLoadException: Method 'CallFromNative' in type 'Neo.Plugins.RpcServer.Diagnostic' from assembly 'RpcServer, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
   at System.Reflection.RuntimeAssembly.GetExportedTypes()
   at Neo.Plugins.Plugin.LoadPlugin(Assembly assembly) in /opt/neo/src/Neo/Plugins/Plugin.cs:line 185
   at Neo.Plugins.Plugin.LoadPlugins() in /opt/neo/src/Neo/Plugins/Plugin.cs:line 233
   at Neo.NeoSystem..cctor() in /opt/neo/src/Neo/NeoSystem.cs:line 108
   --- End of inner exception stack trace ---
   at Neo.NeoSystem.CurrentDomain_UnhandledException(Object sender, UnhandledExceptionEventArgs e) in /opt/neo/src/Neo/NeoSystem.cs:line 182
   at System.AppContext.OnUnhandledException(Object e)
/opt/start_node.sh: line 2:   112 Aborted                 (core dumped) ( cd /opt/node/Neo.CLI/; dotnet neo-cli.dll )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions