Another day, another bug… at least this time it’s Microsoft bug and not one of ours! 🙂
Today’s bug is when working with the LINQ to SQL dbml files that have code behind them, if the uses statements are not inside of the namespace, the MSLinqToSQLGenerator will fail with ‘Unspecified error’. The solution is simple, move the using statements into the code block that contains the namespace. As to WHY this would fail, ask Microsoft.
Thanks to this article on Microsoft’s Connect site for this information.