【发布时间】:2013-12-14 16:10:15
【问题描述】:
我曾尝试将 MiniProfiler 连接到首先使用 EF6 代码的现有项目,aaa 而这让我现在很抓狂:)
问题在于,默认情况下 MiniProfiler 与 EF 4.1 一起使用,而对于 6.0,他们已经实现了一种快速解决方案 https://github.com/SamSaffron/MiniProfiler/pull/134
但似乎它不适合我。 每次我启动应用程序时,我都会收到以下异常:
System.InvalidOperationException: The Entity Framework provider type 'StackExchange.Profiling.Data.EFProfiledSqlClientDbProviderServices, MiniProfiler.EntityFramework6' registered in the application config file for the ADO.NET provider with invariant name 'System.Data.SqlClient' could not be loaded. Make sure that the assembly-qualified name is used and that the assembly is available to the running application. See http://go.microsoft.com/fwlink/?LinkId=260882 for more information.
有人遇到过类似的问题吗? 谢谢!
【问题讨论】:
标签: asp.net-mvc-4 entity-framework-6