When using ToLower() in a SQL statement with the Entity Framework profilier initialized (using MiniProfilerEF.Initialize() in Application_Start()) the following error occurs:
SqlException (0x80131904): Warning: Fatal error 3624 occurred
I am running an MVC3 application, with a SQL server 2005 database.
The error only seems to occur if the data source in question is NOT created using ObjectContextUtils.CreateObjectContext.