Używam miniprofiler w projekcie MVC na App_Start metoda() wzywambłąd w MiniProfilerEF6.Initialize() C#?
MiniProfilerEF6.Initialize()
i pojawia się błąd:
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.
powinieneś dodać lepsze tagi dla swojego pytania. Myślę, że C# to za mało. – batmaci
gdzieś w kodzie, próbujesz uzyskać dostęp do bazy danych, ale musisz dodać ten wiersz 'MiniProfilerEF6.Initialize()' zanim uzyskasz dostęp do DB –