"String was not recognized as a valid DateTime."
I suspect the offending code is part of a DataBinding event for a Repeater control which sets the text of a literal control.
A datetime is pulled from a mysql database and gets bound to the literal control in the template. The binding event serves to format the date:
protected void litRecentBlog_DataBinding(object sender, EventArgs e)
Literal lit = sender as Literal
if(lit != null)
lit.Text = Convert.ToDateTime(lit.Text).ToString( "ddd MMM dd yyyy" );
This works perfectly on XP/IIS (using the official .NET framework) and produces meaningful dates. Because of this I suspect there is something strange going on with the implementation of DateTime in Mono.
Does anyone know if there are any issues surrounding this or any other classes in Mono? I'd hate to think that I wouldn't be able to run my website on a Linux based machine.