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. Problems with assemblies

Problems with assemblies

Scheduled Pinned Locked Moved C#
6 Posts 2 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.
  • T Offline
    T Offline
    the_grip
    wrote on last edited by
    #1

    Ok, here's the deal - I have two assemblies in a project along with a tester application. The tester application is dependant on (and references) both assemblies, but neither of the assemblies reference each other. I have set up the dependancies and references for the tester app in VS.NET (including setting the references to the assemblies to copy the referenced assemblies local). When i launch the tester application, i get a IO SystemException saying that one of the dll's or its dependancies can't be found, yet if i open explorer and look in the bin\debug folder, i can see both of the assembly dll's along with the tester executable. Any help? This is very frustrating. Thanks!

    L 1 Reply Last reply
    0
    • T the_grip

      Ok, here's the deal - I have two assemblies in a project along with a tester application. The tester application is dependant on (and references) both assemblies, but neither of the assemblies reference each other. I have set up the dependancies and references for the tester app in VS.NET (including setting the references to the assemblies to copy the referenced assemblies local). When i launch the tester application, i get a IO SystemException saying that one of the dll's or its dependancies can't be found, yet if i open explorer and look in the bin\debug folder, i can see both of the assembly dll's along with the tester executable. Any help? This is very frustrating. Thanks!

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      the_grip wrote: When i launch the tester application, i get a IO SystemException saying that one of the dll's or its dependancies can't be found, yet if i open explorer and look in the bin\debug folder, i can see both of the assembly dll's along with the tester executable. One or both of the assemblies probably has a dependancy on another assembly that is not in the progrm directory or the GAC. Who is this miscrosoft, and what devilish plans have they for us?

      T 1 Reply Last reply
      0
      • L leppie

        the_grip wrote: When i launch the tester application, i get a IO SystemException saying that one of the dll's or its dependancies can't be found, yet if i open explorer and look in the bin\debug folder, i can see both of the assembly dll's along with the tester executable. One or both of the assemblies probably has a dependancy on another assembly that is not in the progrm directory or the GAC. Who is this miscrosoft, and what devilish plans have they for us?

        T Offline
        T Offline
        the_grip
        wrote on last edited by
        #3

        That's what i initially thought, however, they only reference the base assemblies (System, etc.). There are no custom references defined that these are dependant on. Surely I don't have to copy these dlls... that should be in the environment path... or do i need to set these to copy local? i should note that i had this problem once before... i had to strong name my assemblies and add them to the GAC before it would work. This was a few weeks ago, and i dumped that solution. Every time i rebuilt the assemblies i would have to reregister them in the GAC. Surely there is a better solution (i can't imagine having to do this just to test assemblies)?

        L 1 Reply Last reply
        0
        • T the_grip

          That's what i initially thought, however, they only reference the base assemblies (System, etc.). There are no custom references defined that these are dependant on. Surely I don't have to copy these dlls... that should be in the environment path... or do i need to set these to copy local? i should note that i had this problem once before... i had to strong name my assemblies and add them to the GAC before it would work. This was a few weeks ago, and i dumped that solution. Every time i rebuilt the assemblies i would have to reregister them in the GAC. Surely there is a better solution (i can't imagine having to do this just to test assemblies)?

          L Offline
          L Offline
          leppie
          wrote on last edited by
          #4

          Weird. I would suggest using Reflector .NET , it will popup a dialog for the needed assemblies when laoding an assembly. http://www.aisto.com/roeder/dotnet[^] Who is this miscrosoft, and what devilish plans have they for us?

          T 1 Reply Last reply
          0
          • L leppie

            Weird. I would suggest using Reflector .NET , it will popup a dialog for the needed assemblies when laoding an assembly. http://www.aisto.com/roeder/dotnet[^] Who is this miscrosoft, and what devilish plans have they for us?

            T Offline
            T Offline
            the_grip
            wrote on last edited by
            #5

            Thx leppie... i downloaded all those proggies off that page... good stuff. i DID manage to finally find my problem. i was referencing the debug dll's for the assemblies (wrong), co i changed it to reference the assembly projects (right). i could have used the release dll's i guess, but this way solved my problem. Oh well - there's another hour or two down the tubes on stupid troubleshooting errors :) Thanks again for the help.

            L 1 Reply Last reply
            0
            • T the_grip

              Thx leppie... i downloaded all those proggies off that page... good stuff. i DID manage to finally find my problem. i was referencing the debug dll's for the assemblies (wrong), co i changed it to reference the assembly projects (right). i could have used the release dll's i guess, but this way solved my problem. Oh well - there's another hour or two down the tubes on stupid troubleshooting errors :) Thanks again for the help.

              L Offline
              L Offline
              leppie
              wrote on last edited by
              #6

              the_grip wrote: Oh well - there's another hour or two down the tubes on stupid troubleshooting errors I had a problem the other day, that each time i was compiling an assembly it was adding a reference to a then removed reference , eventually 20000 builds later it leaved me alone. ;) Who is this miscrosoft, and what devilish plans have they for us?

              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