My main method exits with a TypeLoadException
<p>The program worked fine until I did this:</p>

<ol>
<li>Added a new class under an existing file and an existing namespace.</li>
<li>Added settings to that project the new class belongs to.</li>
<li>Build the solution.</li>
<li>Build the setup project.</li>
<li>Installed the new version on a machine.</li>
</ol>

<p>When I start the new version on the machine, then I get:</p>

<blockquote>
  <p>Unhandled Exception:
  System.TypeLoadException: Could not
  load type
  'SI.AS.CommonLogic.Utils.ErrorLog'
  from assembly
  'SI.AS.CommonLogic.ErrorUtils,
  Versions=1.0.0.0, Culture=neutral,
  PublicKeyToken=925c8734ae397609'.  at
  RSMonitor.RSMonitorMain.Main(String[]
  args)</p>
</blockquote>

<p>ErrorUtils is the new class I have added. There was a file with a static class in it. I added another static class under it and added settings to the project. It runs smoothly on my developer machine in debug mode. But I can't install and run it on another machine. The program can call the other static class from the same file. What am I missing here?</p>

<p>** update **</p>

<p>I tried to install it for a 2nd time and checked the DLL. The timestamp matched the latest compiled version and now it works. I have no idea why it didn't work last time, because it is the same package I installed again. But if I get same error, then I'll try out your suggestions.</p>
