title: ASP.net - Input string was not in a correct format. for HTMLWorker.ParseToList
body: <p>I am using </p>
  
  <blockquote>
    <p><strong>HTMLWorker.ParseToList(New StringReader(HTMLCode), New StyleSheet)</strong></p>
  </blockquote>
  
  <p>On a String <strong>HTMLCode</strong> that contains :</p>
  
  <pre><code>  &lt;html&gt;
      &lt;body&gt;
      &lt;table width="auto;"&gt;  
          &lt;tr style="color:white ; background: #336699; font-style:bold;"&gt;
          &lt;th width="257px;" height="40" &gt;Service Name&lt;/th&gt;
          &lt;th width="100px;" height="40"&gt;Hits &lt;/th&gt;
          &lt;th width="100px;" height="40"&gt;Revenue&lt;/th&gt;
          &lt;th width="100px;" height="40"&gt;Service Cost&lt;/th&gt;
          &lt;/tr&gt;
  
          &lt;tr&gt;  
          &lt;td width="257px;" height="30" &gt;  GtalkDay &lt;/td&gt; 
          &lt;td width="257px;" height="30" &gt; 320 &lt;/td&gt; 
          &lt;td width="257px;" height="30" &gt;  67.20 &lt;/td&gt; 
          &lt;td width="257px;" height="30" &gt;  (0.21 K) &lt;/td&gt;
          &lt;/tr&gt;
  
          &lt;tr style="background: #EBEBE0"&gt;  
          &lt;td width="257px;" height="30" &gt;  TwitterDay &lt;/td&gt; 
          &lt;td width="257px;" height="30" &gt; 885 &lt;/td&gt; 
          &lt;td width="257px;" height="30" &gt;  185.85 &lt;/td&gt; 
          &lt;td width="257px;" height="30" &gt;  (0.21 K) &lt;/td&gt;
          &lt;/tr&gt;
  
          &lt;tr&gt;  
          &lt;td width="257px;" height="30" &gt;  YahooDay &lt;/td&gt; 
          &lt;td width="257px;" height="30" &gt; 626 &lt;/td&gt; 
          &lt;td width="257px;" height="30" &gt;  131.46 &lt;/td&gt; 
          &lt;td width="257px;" height="30" &gt;  (0.21 K) &lt;/td&gt;
          &lt;/tr&gt; 
  
          &lt;/table&gt;
      &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p>And it is returning the error:</p>
  
  <blockquote>
    <p><strong>Input string was not in a correct format.</strong></p>
  </blockquote>
  
  <p>What could be the problem? the HTML code looks perfectly fine.</p>
  
  <p>all Help would be appreciated</p>
  
  <p><em>PS: I tried to remove Width and Height and Background attributes and the Parsing worked fine</em></p>