Application Runs when Debugging but not when Published
<p>When publishing my web application and then running it will return the error </p>

<p><strong>"Could not load file or assembly 'BaseApplicationName' or one of its dependencies. An attempt was made to load a program with an incorrect format."</strong></p>

<p>However if I run the application through <strong>debugging (f5) it runs correctly</strong>. </p>

<p>I guess what it comes down to is </p>

<p><strong>what differences are there when running an application through debugging vs publishing it that would cause a problem like this?</strong></p>

<p><em>When publising I have it set to delete all existing.</em></p>

<p><strong>History of how it started...</strong> I added the 32 bit Oracle.DataAccess dll to my 64 bit system. It would not work and crash giving the same error as above but with the Oracle.DataAccess name instead of the baseApplicationName. I have since removed all references to it and removed the dll to try and get it to run without it once again. </p>

<p>Any advice?</p>
