title: Decimal.Parse and incorrect string format error
body: <p>I have a simple problem with decimal parsing. The following code works fine on my computer but when I publish the project on the server (VPS, Windows Server 2008 R2 standard edition) I get the error "Input string was in incorrect format." Any ideas what's wrong?</p>
  
  <p>I store that parsed number in the MySQL DB table - the column type is <code>DECIMAL(10, 4)</code></p>
  
  <p><strong>Source Code:</strong></p>
  
  <pre><code>CultureInfo nonInvariantCulture = new CultureInfo("en-AU"); //or pl-PL
  nonInvariantCulture.NumberFormat.NumberDecimalSeparator = ".";
  Thread.CurrentThread.CurrentCulture = nonInvariantCulture;
  string toConvert = ("3,4589").Replace(",", "."); //it's an example
  decimal parsed = decimal.Parse(toConvert);
  </code></pre>