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. Accessing data in one assembly from another

Accessing data in one assembly from another

Scheduled Pinned Locked Moved C#
helpquestion
2 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.
  • E Offline
    E Offline
    ez2
    wrote on last edited by
    #1

    I have two assemblies (1.consoleApp1.exe, 2.Log.dll) Both assemblies use the same namespace and consoleApp1.exe has a reference to log.dll. My problem is that I can't reference an object from log.dll which is located in consoleApp1.exe. I get the following error message " namespace or type could not be found. Are you missing an assembly or namespace?" Also note, I can reference log.dll from consoleApp1.exe just fine. It's only the other way around where I'm having problems. I'm new to this, so any suggestions as to why this is happening would be great.

    L 1 Reply Last reply
    0
    • E ez2

      I have two assemblies (1.consoleApp1.exe, 2.Log.dll) Both assemblies use the same namespace and consoleApp1.exe has a reference to log.dll. My problem is that I can't reference an object from log.dll which is located in consoleApp1.exe. I get the following error message " namespace or type could not be found. Are you missing an assembly or namespace?" Also note, I can reference log.dll from consoleApp1.exe just fine. It's only the other way around where I'm having problems. I'm new to this, so any suggestions as to why this is happening would be great.

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

      ez2 wrote: Also note, I can reference log.dll from consoleApp1.exe just fine. It's only the other way around where I'm having problems. Best is too create another assembly with common data and reference them from both :) You have nice chicken - egg scenario here :laugh: Hope this help Give them a chance! Do it for the kittens, dear God, the kittens! As seen on MS File Transfer: Please enter an integer between 1 and 2.

      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