Banging my head: Could not load type ERROR

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • darrel

    Banging my head: Could not load type ERROR

    What does that MEAN?

    I'm working on a VS project with another person. We keep our DLLs and files
    in sync with each other. Last week I hit a snag where i kept getting the
    'could not load type' error with one of my usercontrols. The other person
    can take my exact same files, compile it into his copy, and it works fine.

    So, I deleted everything I had, reimported all of his files, and things were
    working again on my localhost.

    However, I can not change any of the VB code of the one particular
    usercontrol and have VS.net compile it. It seems to ignore my changes and
    goes on using the DLL I got from the other person. If I delete said DLL in
    hopes of forcing a rebuild, I'm back to getting the 'Could not load type'
    error again.

    AAAAAARRRRRRRRR RRRRRRRRRRRRRRR GGGGGGGGGGGGGGH HHHHHHHHHHHHHHH HHHHHH!

    Any idea? I've looked online and found that this seems to be a really genric
    error and to just keep trying rebuilding/resetting things until it works.
    I'm getting nowhere with this.

    -Darrel


  • Ken Cox [Microsoft MVP]

    #2
    Re: Banging my head: Could not load type ERROR

    Just checking whether you are both using the same project name?

    It is possible that your Inherits attribute is different.

    <%@ Control Language="vb" AutoEventWireup ="false"
    Codebehind="Web UserControl1.as cx.vb" Inherits="p4320 work.WebUserCon trol1"
    TargetSchema="h ttp://schemas.microso ft.com/intellisense/ie5" %>


    "darrel" <notreal@hotmai l.com> wrote in message
    news:uvjF5GlUEH A.1020@TK2MSFTN GP11.phx.gbl...[color=blue]
    > What does that MEAN?
    >
    > I'm working on a VS project with another person. We keep our DLLs and
    > files
    > in sync with each other. Last week I hit a snag where i kept getting the
    > 'could not load type' error with one of my usercontrols. The other person
    > can take my exact same files, compile it into his copy, and it works fine.
    >
    > So, I deleted everything I had, reimported all of his files, and things
    > were
    > working again on my localhost.
    >
    > However, I can not change any of the VB code of the one particular
    > usercontrol and have VS.net compile it. It seems to ignore my changes and
    > goes on using the DLL I got from the other person. If I delete said DLL in
    > hopes of forcing a rebuild, I'm back to getting the 'Could not load type'
    > error again.
    >
    > AAAAAARRRRRRRRR RRRRRRRRRRRRRRR GGGGGGGGGGGGGGH HHHHHHHHHHHHHHH HHHHHH!
    >
    > Any idea? I've looked online and found that this seems to be a really
    > genric
    > error and to just keep trying rebuilding/resetting things until it works.
    > I'm getting nowhere with this.
    >
    > -Darrel
    >
    >[/color]

    Comment

    • Scott M.

      #3
      Re: Banging my head: Could not load type ERROR

      Your cached copy of your project is probably out of sync with the master
      copy. Have you tried (from the Project) menu, "Web Project/Synchronize All
      Folders"

      If that doesn't work, you may want to delete the files in your cache
      (C:\Documents and Settings\profil eName\VSWebCach e).


      "darrel" <notreal@hotmai l.com> wrote in message
      news:uvjF5GlUEH A.1020@TK2MSFTN GP11.phx.gbl...[color=blue]
      > What does that MEAN?
      >
      > I'm working on a VS project with another person. We keep our DLLs and[/color]
      files[color=blue]
      > in sync with each other. Last week I hit a snag where i kept getting the
      > 'could not load type' error with one of my usercontrols. The other person
      > can take my exact same files, compile it into his copy, and it works fine.
      >
      > So, I deleted everything I had, reimported all of his files, and things[/color]
      were[color=blue]
      > working again on my localhost.
      >
      > However, I can not change any of the VB code of the one particular
      > usercontrol and have VS.net compile it. It seems to ignore my changes and
      > goes on using the DLL I got from the other person. If I delete said DLL in
      > hopes of forcing a rebuild, I'm back to getting the 'Could not load type'
      > error again.
      >
      > AAAAAARRRRRRRRR RRRRRRRRRRRRRRR GGGGGGGGGGGGGGH HHHHHHHHHHHHHHH HHHHHH!
      >
      > Any idea? I've looked online and found that this seems to be a really[/color]
      genric[color=blue]
      > error and to just keep trying rebuilding/resetting things until it works.
      > I'm getting nowhere with this.
      >
      > -Darrel
      >
      >[/color]


      Comment

      • darrel

        #4
        Re: Banging my head: Could not load type ERROR

        > Just checking whether you are both using the same project name?

        Yep. Things have been chuggind along just fine for the most part.
        [color=blue]
        > It is possible that your Inherits attribute is different.[/color]

        Yep...I've checked this and it's OK.

        -Darrel


        Comment

        • darrel

          #5
          Re: Banging my head: Could not load type ERROR

          > If that doesn't work, you may want to delete the files in your cache[color=blue]
          > (C:\Documents and Settings\profil eName\VSWebCach e).[/color]

          Neither of those worked, either.

          I guess one question is a chicken/egg thing. Is the 'could not load type'
          error causing the DLL not to be compiled, or am I getting that error because
          the DLL isn't compiled to begin with?

          -Darrel


          Comment

          • Scott M.

            #6
            Re: Banging my head: Could not load type ERROR

            If you can build the project from the build menu successfully, then the
            problem is not compiling but loading.


            "darrel" <notreal@hotmai l.com> wrote in message
            news:%23dPD6clU EHA.484@TK2MSFT NGP10.phx.gbl.. .[color=blue][color=green]
            > > If that doesn't work, you may want to delete the files in your cache
            > > (C:\Documents and Settings\profil eName\VSWebCach e).[/color]
            >
            > Neither of those worked, either.
            >
            > I guess one question is a chicken/egg thing. Is the 'could not load type'
            > error causing the DLL not to be compiled, or am I getting that error[/color]
            because[color=blue]
            > the DLL isn't compiled to begin with?
            >
            > -Darrel
            >
            >[/color]


            Comment

            • darrel

              #7
              Re: Banging my head: Could not load type ERROR

              > If you can build the project from the build menu successfully, then the[color=blue]
              > problem is not compiling but loading.[/color]

              A succesful build = a DLL?

              I'm not getting a DLL, so would that indicate a build problem? Any idea why
              I can't build the project but another person can?

              -Darrel


              Comment

              • Scott M.

                #8
                Re: Banging my head: Could not load type ERROR


                "darrel" <notreal@hotmai l.com> wrote in message
                news:eTu%23dCtU EHA.3664@TK2MSF TNGP12.phx.gbl. ..[color=blue][color=green]
                > > If you can build the project from the build menu successfully, then the
                > > problem is not compiling but loading.[/color]
                >
                > A succesful build = a DLL?[/color]

                Yes, or in .NET terms, an assembly.
                [color=blue]
                >
                > I'm not getting a DLL, so would that indicate a build problem? Any idea[/color]
                why[color=blue]
                > I can't build the project but another person can?[/color]

                Are you looking in the /bin folder of your project for the assembly?


                Comment

                Working...