2013-04-11 119 views
0

我最近使用EF5與.NET框架4.5,我想使用實體框架探查, 但是當我嘗試初始化它,我得到一個異常EFProf .NET框架4.5

System.InvalidOperationException: System.InvalidOperationException: The type or namespace name 'Infrastructure' does not exist in the namespace 'System.Data.Entity' (are you missing an assembly reference?) 

要注意,我開始引用了System.Data.Entity程序集..也許我必須在app.config中設置一些 程序集綁定重定向? 有什麼建議嗎?

在此先感謝

回答

0

該解決方案適用於我,在同樣的情況:

卸載NuGet包:實體框架事件探查器(我證明了從的NuGet安裝EFProf) 卸載實體框架事件探查器的所有實例在控制面板中>添加或刪除程序

從HinernatingRhinos網頁下載EFprof。解壓在VisualStudio的項目HibernatingRhinos.Profiler.Appender.dll該文件夾

開始EFProf.exe在任意文件夾 添加引用並執行的VisualStudio解決方案

That's所有