Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/design-patterns/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Entity framework 4 休眠Rhinos-实体探查器-类型或命名空间名称';配置';命名空间中不存在';System.Data.Entity';_Entity Framework 4 - Fatal编程技术网

Entity framework 4 休眠Rhinos-实体探查器-类型或命名空间名称';配置';命名空间中不存在';System.Data.Entity';

Entity framework 4 休眠Rhinos-实体探查器-类型或命名空间名称';配置';命名空间中不存在';System.Data.Entity';,entity-framework-4,Entity Framework 4,我通过使用Nu Get休眠Rhinos安装了Entity Profiler 2.02145.0版。它安装了所需的程序集并创建了以下引导程序类: using HibernatingRhinos.Profiler.Appender.EntityFramework; [assembly: WebActivator.PreApplicationStartMethod(typeof(Application.Web.App_Start.EntityFrameworkProfilerBootstrapp

我通过使用Nu Get休眠Rhinos安装了Entity Profiler 2.02145.0版。它安装了所需的程序集并创建了以下引导程序类:

 using HibernatingRhinos.Profiler.Appender.EntityFramework;


[assembly: WebActivator.PreApplicationStartMethod(typeof(Application.Web.App_Start.EntityFrameworkProfilerBootstrapper), "PreStart")]
namespace Application.Web.App_Start
{
    public static class EntityFrameworkProfilerBootstrapper
    {
        public static void PreStart()
        {
            // Initialize the profiler
            EntityFrameworkProfiler.Initialize();

            // You can also use the profiler in an offline manner.
            // This will generate a file with a snapshot of all the EntityFramework activity in the application,
            // which you can use for later analysis by loading the file into the profiler.
            // var filename = @"c:\profiler-log";
            // EntityFrameworkProfiler.InitializeOfflineProfiling(filename);
        }
    }
}
当我运行我的应用程序时,在这一行
EntityFrameworkProfiler.Initialize()上出现了异常“类型或命名空间名称'Config'在命名空间'System.Data.Entity'中不存在”(是否缺少程序集引用?)

System.Data.Entity在我的web项目中被引用


关于如何解决错误有什么想法吗?

我想知道这个版本是否应该对EF6而不是EF4起作用。我也有同样的错误。有什么想法吗?只是得到了一个不同的版本,它现在正在与EF5一起工作。我发电子邮件给支持人员,他们说这是版本2145中的一个错误,使用2144或2146。我可以确认它在2146年起作用。