title: 'System.BadImageFormatException' occurred in mscorlib.dll
body: <p>I have a project that I want to refresh a bit, but it is no longer working as it once did.</p>
  
  <p>It supports multiple languages (English, French, etc.), but I am now getting the following error:
  'System.BadImageFormatException' occurred in mscorlib.dll at run time when it attempts to change languages cultures.</p>
  
  <p>This happens when it and its language res files / .dlls are built with the dot net framework version 3.5.</p>
  
  <p>This does not happen if I change the language res files / .dlls to be built with the 4.5 dot net framework.</p>
  
  <p>The language are res files are build as x86, I've tried both x86 and anycpu for the project - in various combinations but, again, it only works at runtime when using the dot net framework 4.5.</p>
  
  <p>The error gets thrown with this code:</p>
  
  <pre><code>System.Threading.Thread.CurrentThread.CurrentUICulture = New System.Globalization.CultureInfo(My.Settings.Language)
  </code></pre>
  
  <p>I would like to use the dot net framework 3.5 for better OS backwards compatibility.</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks in advance.</p>