C#
-
Hi, I have a problem I never encountered...and sites across the net didn't help much. I have a class exposing a public method which clears a queue object. On a form using this object, when calling this method ..is causing an exception : Method not found. :wtf: :confused:What is exactly this exception!?:confused: My method is there and was created normally. What possible solutions are there? I'm using C# with .net 2.0 and I have .net 1.1 installed previous to 2.0. Regards Kev. ;)
-
Hi, I have a problem I never encountered...and sites across the net didn't help much. I have a class exposing a public method which clears a queue object. On a form using this object, when calling this method ..is causing an exception : Method not found. :wtf: :confused:What is exactly this exception!?:confused: My method is there and was created normally. What possible solutions are there? I'm using C# with .net 2.0 and I have .net 1.1 installed previous to 2.0. Regards Kev. ;)
Hi The Exception message should tell you the name of the missing method. The exception can have many causes like: - there's no method with that name at all - there's no method that takes parameters of this type - there's no method with that return time it can happen if you change a dll and copy the new version of an exe that uses it, but not the new version of the dll... or the app loads the wrong clr assemblies (1.1 instead of 2.0) take look at the loaded assemblies. check the versions and their codebase (you cann get a list of all loaded assemblies in the appdomain class.
GetLoadedAssemblies
i think) greets m@u -
Hi, I have a problem I never encountered...and sites across the net didn't help much. I have a class exposing a public method which clears a queue object. On a form using this object, when calling this method ..is causing an exception : Method not found. :wtf: :confused:What is exactly this exception!?:confused: My method is there and was created normally. What possible solutions are there? I'm using C# with .net 2.0 and I have .net 1.1 installed previous to 2.0. Regards Kev. ;)
What is the exception text? Without seeing it, I have no idea.
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
-
Hi, I have a problem I never encountered...and sites across the net didn't help much. I have a class exposing a public method which clears a queue object. On a form using this object, when calling this method ..is causing an exception : Method not found. :wtf: :confused:What is exactly this exception!?:confused: My method is there and was created normally. What possible solutions are there? I'm using C# with .net 2.0 and I have .net 1.1 installed previous to 2.0. Regards Kev. ;)
Are you using invoke?
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway -
Hi, I have a problem I never encountered...and sites across the net didn't help much. I have a class exposing a public method which clears a queue object. On a form using this object, when calling this method ..is causing an exception : Method not found. :wtf: :confused:What is exactly this exception!?:confused: My method is there and was created normally. What possible solutions are there? I'm using C# with .net 2.0 and I have .net 1.1 installed previous to 2.0. Regards Kev. ;)
Is it a static method? If so you can't call it on an instance. Without seeing the exception or the code then there's bugger all else we can do to help. BTW - change your subject to something more intelligent. We know it's a question about C# - this is a C# forum after all.
Deja View - the feeling that you've seen this post before.
-
Is it a static method? If so you can't call it on an instance. Without seeing the exception or the code then there's bugger all else we can do to help. BTW - change your subject to something more intelligent. We know it's a question about C# - this is a C# forum after all.
Deja View - the feeling that you've seen this post before.