© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
4 replies
iwasinrfc2795

Method not found, despite compiling fine

Hello all. I am compiling this library (https://web.archive.org/web/20210419093118/http://xml-rpc.net/faq/xmlrpcnetfaq-2-5-0.html) for use with Fldigi. It compiles completely fine (latest snapshot), but when using the library in a separate project,
dotnet run
dotnet run
throws the error attached in file. I know this function exists, because the official docs say it does. (https://learn.microsoft.com/en-us/dotnet/api/system.reflection.emit.assemblybuilder.definedynamicassembly?source=recommendations&view=net-7.0) Also attached is the full source code with one minor change in XmlRpcProxyGen.cs, in line 105 from
AssemblyBuilder assBldr = AppDomain.CurrentDomain.DefineDynamicAssembly(assName, access);
AssemblyBuilder assBldr = AppDomain.CurrentDomain.DefineDynamicAssembly(assName, access);
to
AssemblyBuilder assBldr = AssemblyBuilder.DefineDynamicAssembly(assName, access);
AssemblyBuilder assBldr = AssemblyBuilder.DefineDynamicAssembly(assName, access);
, as AppDomain.CurrentDomain no longer holds the function.
image.png
XmlRpc.zip83.83KB
AssemblyBuilder.DefineDynamicAssembly Method (System.Reflection.Emit)
Defines a dynamic assembly.
AssemblyBuilder.DefineDynamicAssembly Method (System.Reflection.Emit)
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Chaining async methods. Method not found
C#CC# / help
3y ago
FluentValidation validators not registering in DI despite using extension method
C#CC# / help
3mo ago
❔ What could be causing the following issue (Method not found):
C#CC# / help
4y ago