MiniProfilerEF.Initialize() could not be initialized properly

前端 未结 2 1194
逝去的感伤
逝去的感伤 2021-01-19 03:44

I just started trying out the mvc-mini-profiler in my MVC3 project with EF4.1 and after changing MiniProfilerEF.Initialize(); to MiniProfilerE

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-19 04:19

    If it helps, the EF team have release a beta preview with a fix for the error

    The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)

    See http://blogs.msdn.com/b/adonet/archive/2011/09/28/ef-4-2-release-candidate-available.aspx

    You can get it from Nuget using

    PM> Install-Package EntityFramework.Preview

    I just tested it on my build and it fixes the issue meaning you can just call MiniProfilerEF.Initialize(); as before instead of the new method.

提交回复
热议问题