title: Cannot locate resource
body: <p>I don't know exactly if it is a bug but i am getting all the time runtime IOException error saying Cannot locate resource.</p>
  
  <p>I am loading some images in my app (c#, WPF) in canvas background depends on database state.
  The problem is, that i cannot load LAST (alphabeting sorted) file. I have for example 15 images in folder. I can load 14 first without problems. But the last one all the time throw exception.</p>
  
  <p>I am 100% sure, that i HAVE the image in the folder (see !image-printscreen below).
  And how i wrote. 14 first i can load without any problem, only the last one throw exception.</p>
  
  <p>Is it a bug in WPF-c# or am I doing something wrong?</p>
  
  <p>code what is throwing exception:</p>
  
  <pre><code>canvas_status.Background = new ImageBrush(new BitmapImage(new Uri(BaseUriHelper.GetBaseUri(this), @"Images\" + statusName + ".png")));
  
  canvas_name.Background = new ImageBrush(new BitmapImage(new Uri(BaseUriHelper.GetBaseUri(this), @"Images\" + statusName + bulheadName + ".png")));
  </code></pre>
  
  <p>error:</p>
  
  <pre><code>IOException was unhalded
  Cannot locate resource 'view/images/panel_uzavreno_d.png'.
  </code></pre>
  
  <p>image (for higher resolution click on image right mouse button and click on SHOW IMAGE or something like that):</p>
  
  <p><img src="https://i.imgur.com/SuBWl.jpg" alt="printscreen"></p>