DLL not gets updated

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sagark
    New Member
    • Jan 2009
    • 12

    DLL not gets updated

    I have one Vb.net project. When I done some changes in the code and tried to build the project, the project dll not gets updated. It is still working as per old code. Any idea?
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    What does the output of your build message say?

    Comment

    • sagark
      New Member
      • Jan 2009
      • 12

      #3
      All the things works perfectly. I got the message as 'Build Succeeded.' But when I refer the same dll in other project, the code from the dll works as per old one.

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        In the project, did you remove the reference to the DLL and then re-add it?

        And how did you reference it? Did you reference it as a "project"? If not, are you referencing a "release" version and are now creating the DLL as a Debug version (or vice versa)

        Comment

        • sagark
          New Member
          • Jan 2009
          • 12

          #5
          Yeah...I have deleted the reference and added new one for updated dll but still the problem persists. I added reference as a dll not as a project. Also the in my vb project there is only debug folder inside which there is an updated dll file.

          Comment

          • Frinavale
            Recognized Expert Expert
            • Oct 2006
            • 9749

            #6
            Is the DLL unmanaged code or managed code?

            Did you un-register and then re-register the DLL before you re-referenced it in your project?

            Comment

            • vekipeki
              Recognized Expert New Member
              • Nov 2007
              • 229

              #7
              Maybe your assembly somehow got into Global Assembly Cache? You can use GacUtil /L YourAssemblyNam e to see if it's there.

              You can also try to get the assembly path using Reflection:

              Code:
              System.Reflection.Assembly assembly =
                 System.Reflection.Assembly
                 .GetAssembly(typeof( /* any class in that assembly */ ));
              
              MessageBox.Show(
                 String.Format("Assembly {0}, location = {1}",
                 assembly.ToString(), assembly.Location));

              Comment

              • sagark
                New Member
                • Jan 2009
                • 12

                #8
                Hey...this works. I found my DLL in assembly cache. Thank you all for your help.

                Comment

                • Plater
                  Recognized Expert Expert
                  • Apr 2007
                  • 7872

                  #9
                  Is this DLL used in a webpage or web application of any sort? Because that would explain how it ended up in the GAC

                  Comment

                  • sagark
                    New Member
                    • Jan 2009
                    • 12

                    #10
                    The dll is used in web site application.

                    Comment

                    • Plater
                      Recognized Expert Expert
                      • Apr 2007
                      • 7872

                      #11
                      Ahh ok. That would be a pivital piece of information.
                      DLLs loaded with webapplications end up in the GAC and frequently don't get updated once they are in there

                      Comment

                      Working...