警告:ASP.NET运行时错误:无法加载文件或程序'的EntityFramework,版本6.0.0.0 = [英] Warning ASP.NET runtime error: Could not load file or assembly 'EntityFramework, Version=6.0.0.0

查看:226
本文介绍了警告:ASP.NET运行时错误:无法加载文件或程序'的EntityFramework,版本6.0.0.0 =的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Microsoft Visual Studio防爆preSS 2012使用ASP.NET的Web开发。一切都很正常,但突然在我的控制器之一改变一些code时,Visual Studio的崩溃,现在我得到这个奇怪的运行时错误:

I'm developing using ASP.NET in Microsoft Visual Studio Express 2012 for Web. Everything works great but suddenly when changing some code in one of my controllers Visual Studio crashed and now I got this weird runtime error:

警告1 \\ Views_Create.cshtml:ASP.NET运行时错误:无法加载文件或程序集的EntityFramework,版本6.0.0.0 =文化=中性公钥= b77a5c561934e089或它的一个依赖。参数不正确。 (异常来自HRESULT:80070057(E_INVALIDARG))

我的项目仍然工作正常,虽然比以前慢了一点,但code,视图,模型,控制器的每一个环节的工作就好了。只有在我的工作室使用EF线正在下划线并标记为警告,这是有点儿讨厌!

My project still works fine though only a bit slower than before but every aspect of code, views, models, controller works just fine. Only in my studio the lines using EF are being underlined and marked as warning which is kinda annoying!

我已经尝试过卸载并安装EF或升级到6.1 EF,但没有结果...

I already tried to uninstall and install EF or upgrade to EF 6.1 but no results...

任何人的想法如何解决这个问题呢?

Anybody an idea how to resolve this problem?

推荐答案

张贴在<一个答案href=\"http://stackoverflow.com/questions/6641337/asp-net-error-could-not-load-file-or-assembly\">similar问题解决了这个问题对我来说:

The answer posted in a similar question solved the problem for me:

Delete all files from the following folders and try again:

C:\Users\[username]\AppData\Local\Temp\Temporary ASP.NET Files\
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\
%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\
%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\
%SystemRoot%\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\

这篇关于警告:ASP.NET运行时错误:无法加载文件或程序'的EntityFramework,版本6.0.0.0 =的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆