title: Could not load file or Assembly with embedded Resources
body: <p>I'm getting an odd error when accessing embedded resources in an assembly that I've created when it's called from a WinForms app.</p>
  
  <p>Basically I have an assembly that contains a single standard resource file (<code>Resources.resx</code>) in the <code>Properties</code> folder. The assembly is <code>Westwind.RazorHosting</code>, so the resources are generated into <code>Westwind.RazorHosting.Properties</code>. I access the resources using the generated designer class (<code>Resources.Designer.cs</code>) only from within the assembly code.</p>
  
  <p>When I run tests against the project a test project all is well. Errors (which are the main source of resources used in the app) display properly.</p>
  
  <p>However, when the WinForms app calls the app and causes an error, resource access fails. The error is:</p>
  
  <blockquote>
    <p>Could not load assembly (Westwind.RazorHosting.resources) or one of its dependencies. The system cannot find the file specified</p>
  </blockquote>
  
  <p>Notice that it's not pointing at <code>Westwind.RazorHosting.Properties.resources</code>, but at <code>Westwind.RazorHosting.resources</code>. </p>
  
  <p>When I step into this code with the debugger I step straight into the generated <code>Resources.designer.cs</code> class and the <code>ResourceManager</code> there looks perfectly fine - there's a reference and it points at the right namespace internally. I'm running in the default en-US locale. I checked the assembly generated and the resources do exist under the proper/expected resource id (ie. <code>Westwind.RazorHosting.Properties.ResourceId</code>) - they are present.</p>
  
  <p>Any idea what could be causing .NET to look in the wrong place for resources?</p>