Could not find part of the path for a resources file in a ClickOnce WPF application
<p>I published my click once application in a test environment and I'm getting a can not find part of the path exception in a part where I need to access a file.</p>

<pre><code>Could not find a part of the path 'C:\Users\admin\AppData\Local\Apps\2.0\E65K03BT.792\Resources\file.pem'.
</code></pre>

<p>I'm specifying this path in code as follows: </p>

<pre><code>..\\..\\Resources\\file.pem
</code></pre>

<p>And all works well when I run it from visual studio.</p>

<p>It only fails on the actual deployed application.</p>