Jump to content

Probleme with running c# application on another PC

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
aurelian

aurelian

    Newbie

  • Members
  • Pip
  • 3 posts
Hi,

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.


<<code 1>>


 private void rUNToolStripMenuItem_Click(object sender, EventArgs e)
    {
        MessageBox.Show("I'm in rUNToolStripMenuItem_Click!");
        ...
    
    }

<<code 2>>

private void dataPositionToolStripMenuItem_Click(object sender, EventArgs e)
    {
        MessageBox.Show("I'm in dataPositionToolStripMenuItem_Click!");
        ...    
    } 

Running on my computer:

code1:
MessageBox appears!

code2:
MessageBox appears!


Running on another computer:

code1:
MessageBox doesn't appear and the error happens!

code2:
MessageBox appears!


The error is: Method not found: "Void Microsoft.CSharp.RuntimeBinder.CSharpGetMemberBinder..ctor(System.String.System.Type, System.Collections.Generic.IEnumerable'1<Microsoft.CSharp.RuntimeBinder.CSharpArgument Info>)'.
Posted Image
Please help me to solve the problem!

Thanks

Attached Files


Edited by aurelian, 29 April 2010 - 11:52 AM.


#2
marwex89

marwex89

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 10,720 posts
Well, does the 2nd computer have an updated version of the .NET framework?
Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

#3
aurelian

aurelian

    Newbie

  • Members
  • Pip
  • 3 posts
Yes, my computer has .NET Framework 4.0.20506 and the second computer has .NET Framework 4.0.30319 .

#4
gokuajmes

gokuajmes

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 518 posts
could you post the whole source code , ^^ it is really hard to pin-point a error from 1 line you posted.
Also run the Souce Code [Solution File ] in the other Pc from Visual Studio & see where the Unhandled exception occurs:w00t:

#5
aurelian

aurelian

    Newbie

  • Members
  • Pip
  • 3 posts
I solved the problem. I installed on my computer Visual Studio 2010 Professional Full Version and now, my project is set for .NET Framework 4.0.30319. Now the program works fine on both computers. Thanks a lot!