Click here to Skip to main content
15,881,139 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Im working in a new WebProject using c# and framework v4.0

I add as a reference a dll(c++/cli), and when I what the site in the browser, an error appears:

Could not load file or assembly 'MyDll.dll' or one of its dependencies. Can not find the specified module.

Before, I had a problem referencing a dll(C++/CLI) from a project, but I think it whas solved changing the c++ project from DEBUG to RELEASE and to build a new dll, but another error replaced the old one

Does anybody knows why my WebProject cannot find the dll when I just added it as a reference?
Posted
Comments
Sergey Alexandrovich Kryukov 4-Mar-14 17:53pm    
This is your project. Does it tell you something? And my access to you hard drive is somewhat limited at this moment.
—SA
memd24 4-Mar-14 18:03pm    
Sorry, Is the project of my company, and I dont understand why you are saying to acces to my hd?
ZurdoDev 4-Mar-14 20:10pm    
1. Reply to the comment so that the user is notified instead of adding a new comment to your own question.
2. His point is how can we know why if we can't access your machine. The error says it can't find it. Make sure the dll is in your bin folder.

1 solution

This is how to resolve your problem
1. First add your dll in bin folder
2. Add reference to this dll
3. IF reference isnot being added then remove all dll references from reference (recent tab)
and also note that remove all files from obj folder
and then again add dll and refeence and then clean,rebuild application
this will def solve your problem.
 
Share this answer
 
Comments
memd24 10-Mar-14 11:49am    
Tanks!

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