exception encountered
-
I am trying to run my C# application on my PDA device (its a Symbol device) and I get this exception "An unhandled exception of the type 'System.MissingMethodException' occurred in System.Windows.Forms.dll Additional information: Method not found: Dispose Symbol.Generic.Controller, Symbol, Version=1.0.5000.1, Culture=neutral, PublicKeyToken=68EC8DB391F150CA. " I am not understanding what is this and on which function it is occurring. Checked on google and found that "MissingMethodException is designed to handle cases where an attempt is made to dynamically access a renamed or deleted method of an assembly that is not referenced by its strong name" Can anyone help me incase they have encountered similar issue. Also please tell me what should be the possible solution to this issue
-
I am trying to run my C# application on my PDA device (its a Symbol device) and I get this exception "An unhandled exception of the type 'System.MissingMethodException' occurred in System.Windows.Forms.dll Additional information: Method not found: Dispose Symbol.Generic.Controller, Symbol, Version=1.0.5000.1, Culture=neutral, PublicKeyToken=68EC8DB391F150CA. " I am not understanding what is this and on which function it is occurring. Checked on google and found that "MissingMethodException is designed to handle cases where an attempt is made to dynamically access a renamed or deleted method of an assembly that is not referenced by its strong name" Can anyone help me incase they have encountered similar issue. Also please tell me what should be the possible solution to this issue
Looks to me like you are trying to use an assembly that was created to work in the .NET Framework, but not in the .NET Compact Framework. That's just a guess though. The error message is confusing because it says that it occurred in 'System.Windows.Forms.dll', but the apparent missing method is Dispose which is found in 'Symbol.Generic.Controller'. Are you calling Dispose in your form on a Symbol.Generic.Controller object? If so, trying removing it and see if that helps. It seems that you may have inadvertently compiled your application against a normal .NET Framework library which has the Dispose method, but as soon as you try to run it on the PDA which has a different version of the Symbol assembly, it croaks because it doesn't support that method. This would also explain why it's a runtime exception and not a compile time failure. -Matt
------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall