MVC MiniProfiler with Entity Framework 5 Model First Error: Unable to determine the provider name


See case on

Using Entity Framework 5, MiniProfiler 2. Nuget installed for MiniProfiler.EF.

Creating a connection as follows

var conn = new EFProfiledDbConnection(DbConnections.GetSqlConnection(),                                                                      MiniProfiler.Current);
return new MyDbContext(conn, true);

When trying to retrieve data using the DbContext, the following error is returned:

Unable to determine the provider name for connection of type     

Tried using the MiniProfilerEF.Initialize() functions, and setting the ProfiledDbProviderFactory in Web.config, but nothing helps.

How can this be fixed? Is MiniProfiler working for EF5 model first?