Link to home
Start Free TrialLog in
Avatar of RichardRiga
RichardRiga

asked on

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?
Avatar of kaufmed
kaufmed
Flag of United States of America image

Is it a "resource only" DLL?
If your refering about an unmanaged COM DLL then register the library and then try adding it as a reference.
ASKER CERTIFIED SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RichardRiga
RichardRiga

ASKER

thank you