Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

System.MissingMethodException: 'Method not found for XmlRpcProxyGen.Create

Tags:

c#

I'm trying to communicate with a python server using XML-RCP but when I try to compile the following code, the exception "System.MissingMethodException: 'Method not found: 'System.Reflection.Emit.AssemblyBuilder System.AppDomain.DefineDynamicAssembly(System.Reflection.AssemblyName, System.Reflection.Emit.AssemblyBuilderAccess)'.'" displays, I've found no documentation about this issue


    using CookComputing.XmlRpc;
    using System;


    [XmlRpcUrl("http://192.168.5.211:8000")]
    public interface FlRPC : IXmlRpcProxy
    {
        [XmlRpcMethod("add")]
        int add(int x, int y);
    }

    class Program
    {
        static void Main(string[] args)
        {
            FlRPC proxy = XmlRpcProxyGen.Create<FlRPC>();
            Console.WriteLine(proxy.add(2, 3));
        }
    }

I just want to skip this issue to continue to work on my project!

like image 776
Boris Marion-Dorier Avatar asked May 29 '19 10:05

Boris Marion-Dorier


1 Answers

If the application you are trying to build is a .NET Core Application the xmlrpcnet package might be exclusively for the .NET Framework.

Try to replace it with Horizon's .NET Core port, Horizon.XmlRpc.Core and see if it helps.

like image 165
Albert Schulz Avatar answered Oct 20 '22 19:10

Albert Schulz