nacho10f
nacho10f

Reputation: 5886

MiniProfiler with mvc 3 and ef 4.3

So i've just installed miniprofiler.mvc to my web project and it seems to be working fine. Except I cant figure out what to do to set up EF Code First and the docs seem to be outdated.

My project has a MyApp.DAL project where the EF stuff lives.

What do I need to do to start profiling EF? please help?

UPDATE:

I have installed MiniProfiler.EF 2.0.2 and now I get

Could not load file or assembly 'EntityFramework, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Upvotes: 0

Views: 924

Answers (2)

nacho10f
nacho10f

Reputation: 5886

i've "fixed" it by simply adding EF to my Web Project

This is not ideal but it will do for now.

Upvotes: -1

Chase Florell
Chase Florell

Reputation: 47377

Have you made sure to install the EF package from Nuget?
http://nuget.org/packages/MiniProfiler.EF

PM> Install-Package MiniProfiler.EF

Upvotes: 2

Related Questions