Sto utilizzando miniprofiler nel progetto MVC su App_Start metodo() invocosu MiniProfilerEF6.Initialize() C#?
MiniProfilerEF6.Initialize()
e ottengo l'errore:
the Entity Framework was already using a DbConfiguration
instance before an attempt was made to add an 'Loaded' event handler.
'Loaded' event handlers can only be added as part of application start
up before the Entity Framework is used. See http://go.microsoft.com/fwlink/?LinkId=260883 for more information.
dovresti aggiungere tag migliori per la tua domanda. Penso che C# non sia abbastanza. – batmaci
da qualche parte nel codice, si sta tentando di accedere al DB ma è necessario aggiungere questa riga 'MiniProfilerEF6.Initialize()' prima di accedere al DB –