Asp.net mvc 5 MVC5项目中的实体框架错误

Asp.net mvc 5 MVC5项目中的实体框架错误,asp.net-mvc-5,Asp.net Mvc 5,我尝试了以下方法,但没有效果 http://stackoverflow.com/questions/1012252/using-fuslogvw-exe-on-a-machine-with-no-visual-studio-installed 描述:执行当前web请求期间发生未处理的异常。请查看堆栈跟踪以了解有关错误的更多信息以及错误在代码中的起源 异常详细信息:System.BadImageFormatException:无法加载文件或程序集“EntityFramework.SqlServe

我尝试了以下方法,但没有效果

http://stackoverflow.com/questions/1012252/using-fuslogvw-exe-on-a-machine-with-no-visual-studio-installed
描述:执行当前web请求期间发生未处理的异常。请查看堆栈跟踪以了解有关错误的更多信息以及错误在代码中的起源

异常详细信息:System.BadImageFormatException:无法加载文件或程序集“EntityFramework.SqlServer”或其依赖项之一。模块应包含程序集清单

源错误:

在执行当前web请求期间生成了未经处理的异常。有关异常的起源和位置的信息可以使用下面的异常堆栈跟踪来识别

Stack Trace:
[BadImageFormatException: Could not load file or assembly 'EntityFramework.SqlServer' or one of its dependencies. The module was expected to contain an assembly manifest.] System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, IntPtr pPrivHostBinder.... 

看起来您缺少了一些Nugget包…(从错误描述中)

您可以从Nuget软件包中添加
EntityFramework.SqlServerCompact
,然后重建项目,然后自动添加
EntityFramework.SqlServer dll

如果有帮助,请告诉我

祝你好运!
Shimi

可能是@Kami No的重复!我已经看过了帖子,建议的解决方案并没有帮到我。。。