LINQ2SQL Bug: String must be exactly one character long

January 27, 2010

I’ve just spent nearly half a day working out why I was getting this error when running a LINQ query:

System.FormatException: String must be exactly one character long

Head on over to Stephen M Redd’s Blog for a decent explaination of why this occurs and how to fix it.

Note that this has been raised and accepted as a bug with Microsoft, so it may well be fixed by the time you read this!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: