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

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

问题描述

我正在Microsoft Visual Studio Express 2012 for Web中开发ASP.NET。一切都很好,但突然间,当我的一个控制器中的一些代码更改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,Version = 6.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089或其依赖关系之一。参数不正确(HRESULT的异常:0x80070057(E_INVALIDARG))

我的项目仍然可以正常工作,但是比以前慢一些,代码,视图,模型的每个方面,控制器工作正常。只有在我的工作室,使用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或升级到EF 6.1,但没有

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

推荐答案

答案发布在相似的问题解决了我的问题:

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天全站免登陆