system.io.filenotfoundexception when publishing
<p>I wrote a form application in c# using Visual Studio 2008, third party dlls, an xml file and images.  The images have been added to the project as resources.</p>

<p>A <code>System.IO.FileNotFoundException</code> is thrown when I attempt to run the published version of the executable on another machine.</p>

<p>If I copy the .exe file to the desktop on the pc, and also copy the dlls and the xml file to the desktop, double clicking on the exe works fine.</p>

<p>In my project, I have the copyLocal set to true for the required dll references. The xml is added to the project and set to copy if newer to output directory. I also checked the publish application files and everything is there. </p>

<p>The line I use to load the xml file is this</p>

<pre><code>config = new XmlDocument();
config.Load("fileName.xml");
</code></pre>
