title: How do I actually replace a resources (.resx) file in a running application for a .Net DLL?
body: <p>Here's my scenario:</p>
  
  <p>I have a .Net (3.5) DLL being referenced by an ASP.Net web application.</p>
  
  <p>One of the classes in the DLL has a .resx file containing an error message string that ultimately gets shown by the calling .aspx page.</p>
  
  <p>The DLL makes use of multiple namespaces, I've set the .resx file to the same namespace as the class that calls it, and the .resx file has the same folder location and filename as the class that uses is, postfixed with 'Resources': i.e.</p>
  
  <p>Class: <code>ClassName.cs</code><br />
  .resx: <code>ClassNameResources.resx</code></p>
  
  <p>It reads the .resx string (which is compiled in the DLL as an embedded resource) without issue.</p>
  
  <p><strong>The problem I'm having is trying to replace the error message string in the deployed web application - how do I actually do it?</strong></p>
  
  <p>Can you point me at a guide? - the best I've found so far is <a href="http://www.codeproject.com/KB/dotnet/Localization.aspx" rel="nofollow noreferrer" title="Code Project - .Net Localization use Resource file.">this one</a>, which says use <code>regen.exe</code> and <code>al.exe</code>, but the resulting <code>.resources</code> file doesn't get used because the error message doesn't change.  At this stage I'm not trying to localize for any culture, I'm trying to modify the strings returned for the default culture.</p>
  
  <p>Thanks for any suggestions you can make  :o)</p>