title: MethodInfo.Invoke TargetException
body: <p>I've an Issue with System.Reflection, when I call MethodInfo.Invoke method it gaves me the TargetException exception that says: Object does not match with target, Here the code:</p>
  
  <pre><code>object[] parms = new object[] { path };
  
  Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
  Type gameType = null;
  
  foreach (Assembly asm in assemblies)
  {
      string asmName = asm.GetName().Name;
  
      if (asmName == "Tester")
      {
          gameType = asm.GetType("Tester.Main");
          break;
      }
  }
  
  var game = Convert.ChangeType(GameInstance, gameType);
  Type delegateType = game.GetType().GetEvent("gameVideoLoader").EventHandlerType;
  
  MethodInfo method = delegateType.GetMethod("Invoke");
  method.Invoke(game,  parms); // Here the exception
  </code></pre>
  
  <p>Any Idea?
  PS: game object is correctly assigned so it's not null</p>