Error With MiniProfilerEF and ToLower()

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.

David,

I apologize for the tardiness of my response.

Three questions. First, what method are you using to wrap your connection? Second, can you give a simplified example of the SQL command which is causing the error? Third, what service pack and cumulative update is this instance of SQL Server 2005?

Thanks,
counsellorben