Method Not Found from Loaded Assembly
Clash Royale CLAN TAG #URR8PPP Method Not Found from Loaded Assembly I have an application that loads the assembly of another application and invokes methods from that assembly for test purposes. Below is a generic example of this code. testAssembly = Assembly.LoadFrom( path ); var classes = testAssembly.GetTypes(); Type mainForm = classes.Where( c => c.Name == "MainForm" ).SingleOrDefault(); var form = Activator.CreateInstance( mainForm, null ); Type secondForm = classes.Where( c => c.Name == "SecondForm " ).SingleOrDefault(); var sf = Activator.CreateInstance( secondForm , new object { form } ); MethodInfo secondFormMethod = eventList.GetMethod( "SecondFormMethod " ); secondFormMethod.Invoke( sf, new object { } ); This works to a point. The issue is that when the method is fired it eventually leads to a library referenced from the secondFormMethod and comes back with a "Method not found" error. None of my ref...