MissingMethodException in C# Program
- by draghia-aurelian
I wrote a Windows Form Application in C# and it works well for my computer. But on another PC, an error occurs when I try to do some stuff.
MenuItem_Click Event Handler
private void rUNToolStripMenuItem_Click(object sender, EventArgs e)
{
MessageBox.Show("I'm in rUNToolStripMenuItem_Click!");
...
}
ToolStripMenuItem Event Handler
private void dataPositionToolStripMenuItem_Click(object sender, EventArgs e)
{
MessageBox.Show("I'm in dataPositionToolStripMenuItem_Click!");
...
}
Running on my computer:
MenuItem_ClickEvent Handler Output (On My PC)
MessageBox appears: "I'm in rUNToolStripMenuItem_Click"
ToolStripMenuItem Event Handler (On My PC)
MessageBox appears: "I'm in dataPositionToolStripMenuItem_Click!"
MenuItem_Click Event Handler: (On another PC)
Messagebox doesn't appear and an Exception is thrown
Method not found: "Void
Microsoft.CSharp.RuntimeBinder.CSharpGetMemberBinder.ctor(
System.String.System.Type, System.Collections.Generic.IEnumerable'1<Microsoft
.CSharp.RuntimeBinder.CSharpArgument Info>)'.
This is the PrintScreen with error:
What am I doing wrong?