MissingMethodException in C# Program

Posted by draghia-aurelian on Stack Overflow See other posts from Stack Overflow or by draghia-aurelian
Published on 2010-04-29T19:40:49Z Indexed on 2010/04/29 19:57 UTC
Read the original article Hit count: 418

Filed under:
|
|

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:
Screen Capture

What am I doing wrong?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET