Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. C#

C#

Scheduled Pinned Locked Moved C#
csharphelpquestiondata-structures
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    XeoN Kc
    wrote on last edited by
    #1

    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. ;)

    L P E P 4 Replies Last reply
    0
    • X XeoN Kc

      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. ;)

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • X XeoN Kc

        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. ;)

        P Offline
        P Offline
        Paul Conrad
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • X XeoN Kc

          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. ;)

          E Offline
          E Offline
          Ennis Ray Lynch Jr
          wrote on last edited by
          #4

          Are you using invoke?

          Need a C# Consultant? I'm available.
          Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway

          1 Reply Last reply
          0
          • X XeoN Kc

            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. ;)

            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #5

            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.

            My blog | My articles

            X 1 Reply Last reply
            0
            • P Pete OHanlon

              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.

              My blog | My articles

              X Offline
              X Offline
              XeoN Kc
              wrote on last edited by
              #6

              No..not static just a simple public class X { public void Y() { } } the class in a project and the caller is in another project..both c# Both projects compile... ...during execution/debugging the "Method not found" exception is raised! Regards Kev

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups