C#으로 Windows Form 응용 프로그램을 작성했으며 컴퓨터에서 잘 작동합니다. 하지만 다른 PC에서 일부 작업을 시도 할 때 오류가 발생합니다.C# 프로그램의 MissingMethodException
MenuItem_Click 이벤트 처리기
private void rUNToolStripMenuItem_Click(object sender, EventArgs e)
{
MessageBox.Show("I'm in rUNToolStripMenuItem_Click!");
...
}
ToolStripMenuItem 이벤트 처리기
private void dataPositionToolStripMenuItem_Click(object sender, EventArgs e)
{
MessageBox.Show("I'm in dataPositionToolStripMenuItem_Click!");
...
}
내 컴퓨터에서 실행 : (내 PC에)
MenuItem_ClickEvent 처리기 출력
MessageBox appears: "I'm in rUNToolStripMenuItem_Click"
(내 PC에)
ToolStripMenuItem 이벤트 처리기
MessageBox appears: "I'm in dataPositionToolStripMenuItem_Click!"
MenuItem_Click 이벤트 처리기 : (다른 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>)'.
이 오류로 캡쳐 PrintScreen입니다 :
Screen Capture http://img51.imageshack.us/img51/589/errorts.jpg
내가 뭘 잘못하고 있니?
예, 내 컴퓨터에 .NET Framework 4.0.20506이 있고 배포 한 컴퓨터에 .NET Framework 4.0.30319가 있습니다. 이 프로그램은 두 컴퓨터에서 실행되지만 "대상"컴퓨터에서는 일부 작업을 수행 할 때 작동하지 않습니다. 나는 내 응용 프로그램을위한 설정을했다는 것을 언급한다. 감사합니다 – Aurelian
이것은 hte .NET 런타임의 동일한 버전이 아닙니다. .NET 4 RTM 용 응용 프로그램을 빌드하고 .NET 4 RTM이있는 시스템에 배포하면됩니다. –
고마워요, ANC_Michael! – Aurelian