title: Compile Error: Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks. Parameter name: ticks
body: <p>I have a Visual Studio 2008 solution that when I build, returns the following error:</p>
  
  <pre><code>Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks.  Parameter name: ticks
  </code></pre>
  
  <p>There is no reference file/line/column in the error. Becoming quite frustrating as the solution builds in the end, however I cannot debug. </p>
  
  <p>In the solution, there is no reference/using to DateTime.MinValue.Ticks at all...</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>There are only 2 references to ticks in my solution, and neither of those are causing the issue. </p>
  
  <p>There are no constructor issues with DateTime either. I do not believe it is related to DateTime or ticks at all. </p>
  
  <p>I have found a similar reference where it turned out to be a corrupt image file in the solution, where it did not have a date-modified value. This is not affecting mine though.</p>