title: Visual Studio 2008 Setup Project Install error: "Could not load file or assembly"
body: <p>I'm having an issue that apparently many people have had as well, only what has worked for others has not yet worked for me. Here is the setup:</p>
  <p>VS2008 solution with 5 projects, all targeting .NET 2.0:</p>
  <ol>
  <li>DLL A, no project references</li>
  <li>DLL B, references DLL A</li>
  <li>Windows Forms App, references DLL B</li>
  <li>Windows Service, references DLL B</li>
  <li>Setup Project</li>
  </ol>
  <p>What I <em>want</em> to happen is DLL A and DLL B get installed to the GAC, but I'm getting an error on installation:</p>
  <blockquote>
  <p>Error 1001. Could not load file or assembly 'DLL_B', version 1.0.0.1, Culture=neutral, PublicKeyToken=5e297270603814f4' or one of its dependencies. The system could not find the file specified.</p>
  </blockquote>
  <p>From what I read <a href="https://stackoverflow.com/questions/802579/net-2-0-setup-project-in-visual-studio-2008">here</a> and <a href="https://stackoverflow.com/questions/3087063/use-visual-studio-setup-project-to-automatically-register-and-gac-a-com-interop-d">here</a> and a few other sites, I have done the following in no particular order:</p>
  <ul>
  <li>Re-referenced everything in my projects</li>
  <li>Added the compiled EXEs manually to the setup project (instead of using 'Primary Output'... DLL A  and DLL B came up as 'Detected Dependencies')</li>
  <li>In the setup project -&gt; Launch Conditions -&gt; set .NET Framework to 2.0</li>
  <li>In the setup project -&gt; File System -&gt; Requested that detected dependencies be installed to the Global Assembly Cache Folder</li>
  </ul>
  <p>So, I'm probably missing something. Can anyone help me figure out what that is?</p>
  <p>Thanks ahead of time.</p>