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. FileNotFoundException for dll reference in project

FileNotFoundException for dll reference in project

Scheduled Pinned Locked Moved C#
csharpc++debugging
3 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.
  • K Offline
    K Offline
    kayhustle
    wrote on last edited by
    #1

    I have a C# console application that makes a reference to a managed c++ dll. This managed c++ dll is in the same solution. I have added the reference by clicking add reference, clicking on the project tab and selecting the managed c++ dll project. When I build this application it is ok, but when the console is loading, I get a System.IO.FileNotFoundException, cannot find the {the name of the managed c++ dll} or one of its dependencies. I am clueless, since the managed c++ dll has also been copied to the same directory as the console application .exe, which is bin/Debug.

    C 1 Reply Last reply
    0
    • K kayhustle

      I have a C# console application that makes a reference to a managed c++ dll. This managed c++ dll is in the same solution. I have added the reference by clicking add reference, clicking on the project tab and selecting the managed c++ dll project. When I build this application it is ok, but when the console is loading, I get a System.IO.FileNotFoundException, cannot find the {the name of the managed c++ dll} or one of its dependencies. I am clueless, since the managed c++ dll has also been copied to the same directory as the console application .exe, which is bin/Debug.

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      kayhustle wrote: or one of its dependencies Does it have any dependencies? If so, have they been copied to the target directory too?


      Do you want to know more? Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!

      K 1 Reply Last reply
      0
      • C Colin Angus Mackay

        kayhustle wrote: or one of its dependencies Does it have any dependencies? If so, have they been copied to the target directory too?


        Do you want to know more? Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!

        K Offline
        K Offline
        kayhustle
        wrote on last edited by
        #3

        Yes, it was because one of the lib files in the additional dependencies of the C++ project was not in the target directory of the C# pj. Thanks

        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