Click here to Skip to main content
15,900,816 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hello,

I want to add a DLL reference to my project but I'm getting this error:

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

I've been searching on google but the suggestions that I've found couldn't solve the problem.
Any ideas or suggestions?

Thanks.
Posted
Comments
Sergey Alexandrovich Kryukov 20-Mar-12 14:11pm    
OK, and is it a valid .NET assembly or not?
--SA
shreekar 20-Mar-12 15:08pm    
can you explain how you are adding the DLL? That might give us more pointers for cause of error.

I can't be sure but is sounds like you may be trying to reference an unmanaged assembly? If so, try this: Using Unmanaged C++ Libraries (DLLs) in .NET Applications[^].
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 20-Mar-12 14:11pm    
It could be; a valid response, my 5.
--SA
hello;
you can copy about .dll file in Debug or Release folder for c#.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900