title: Could not load assembly. Module not found. PC without VisualStudio
body: <p>I'm a newcomer to StackOverflow. Beforehand, please, forgive the faults on my english.</p>
  
  <p>I have the following problem:</p>
  
  <p>I'm building an application in VC++/CLI (.NET 4.0) that uses a plug-in system using reflection. All the plug-ins are developed by myself too.</p>
  
  <p>Each plugin is a assembly (dll) detected and loaded at runtime. The main application and each plugins references an third assembly that only contains a class interface for <em>safe-cast</em> in the load-reflection step. This assembly builds to the same folder that the main app and all the plugins.</p>
  
  <p>The problem is: when I execute-debug (F5) the application inside Visual Studio, everything works fine. Also, when the app is executed outside VS, it works OK too. But, when the app is executed on a PC without VS, I got the following error:
  <strong>"Could not load file or assembly 'PluginInterface.dll' or one of its dependencies. The specified module could not be found"</strong>. </p>
  
  <p>The error seems to happen when the plugin assemblies are first loaded (Assembly::LoadFrom(filename)) in the main application. Can't be sure, since as I said, the computers where the error occur, don't have VS installed for debugging, or else the error does not occur. This point is the very first use of those assemblies in the application.</p>
  
  <p>The deployment PCs all have .NET 4.0 and the VC++ redist installed.</p>
  
  <p>Why is this happening? What can i do? As you can see, this problem is holding the deployment.</p>