• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 411
  • Last Modified:

In VS2008, how do I reference a dll that I know is valid but throws an error when added?

I have inherited a project from the powers that be, and, when first loading it up in VS 2008, I get an error right off the bat.

"A reference to XXX.dll could not be added.  Please make sure that the file is accessible, and that the assembly is a valid assembly or COM component."

The DLL is valid.  I've used it numerous times in many different applications and services, but I did my due dilligence and removed the reference, put a copy of the DLL i've used personally in its place and STILL get the error.

What can this mean?
0
RichardRiga
Asked:
RichardRiga
1 Solution
 
käµfm³d 👽Commented:
Is it a "resource only" DLL?
0
 
MedievalWarriorCommented:
If your refering about an unmanaged COM DLL then register the library and then try adding it as a reference.
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
Check the paths of the references for the project.  The dll might well be OK, just not in the directory the project is expecting it to be in.
0
 
RichardRigaAuthor Commented:
thank you
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now