Updating VB dll

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bobneedshelp
    New Member
    • Feb 2007
    • 17

    Updating VB dll

    I'm unable to update a dll file without breaking the program that calls the dll.
    I've referenced the dll file and I'm not sure what I'm missing.
    The error message is There is no source code available for the current location.

    The calling program works fine if I re-add the dll reference but not if I just deploy a change to a dll.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Originally posted by bobneedshelp
    I'm unable to update a dll file without breaking the program that calls the dll.
    I've referenced the dll file and I'm not sure what I'm missing.
    The error message is There is no source code available for the current location.

    The calling program works fine if I re-add the dll reference but not if I just deploy a change to a dll.
    Could you provide a bit more information?

    You have a program that is calling some DLL and when you make changes to the DLL the program crashes?

    -Frinny

    Comment

    • bobneedshelp
      New Member
      • Feb 2007
      • 17

      #3
      Originally posted by Frinavale
      Could you provide a bit more information?

      You have a program that is calling some DLL and when you make changes to the DLL the program crashes?

      -Frinny

      That's exactly what is happening.
      here's the full error message
      Could not load file or assembly 'clsLog, Version=1.0.0.0 , Culture=neutral , PublicKeyToken= null' or one of its dependencies. The system cannot find the file specified.

      The file is there. I get rid of the problem by removing the reference in the calling program and adding the reference back through project -> add reference.

      It just seems that this is a compatability issue.

      Comment

      • kenobewan
        Recognized Expert Specialist
        • Dec 2006
        • 4871

        #4
        Here is thread that may help:
        could not load file or assembly ASP_WEB_... in ASP.NET 2.0

        Comment

        • bobneedshelp
          New Member
          • Feb 2007
          • 17

          #5
          Originally posted by kenobewan

          It helped. The default for copy to output directory is "do not copy". Changing that to "copy if newer" solved the problem.

          Comment

          • kenobewan
            Recognized Expert Specialist
            • Dec 2006
            • 4871

            #6
            Well done!

            Comment

            Working...