【问题标题】:Warning ASP.NET runtime error: Could not load file or assembly 'EntityFramework, Version=6.0.0.0警告 ASP.NET 运行时错误:无法加载文件或程序集 'EntityFramework,版本 = 6.0.0.0
【发布时间】:2014-06-12 08:49:15
【问题描述】:

我正在使用 Microsoft Visual Studio Express 2012 for Web 中的 ASP.NET 进行开发。一切正常,但突然在我的一个控制器中更改一些代码时,Visual Studio 崩溃了,现在我得到了这个奇怪的运行时错误:

警告 1 \Views_Create.cshtml:ASP.NET 运行时错误:无法加载文件或程序集“EntityFramework,Version=6.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089”或其依赖项之一。参数不正确。 (HRESULT 异常:0x80070057 (E_INVALIDARG))

我的项目仍然运行良好,虽然只是比以前慢了一点,但代码、视图、模型、控制器的各个方面都运行良好。只有在我的工作室中,使用 EF 的行被加下划线并标记为警告,这有点烦人!

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

有人知道如何解决这个问题吗?

【问题讨论】:

    标签: asp.net .net entity-framework visual-studio-2012


    【解决方案1】:

    similar question 中的答案为我解决了这个问题:

    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\
    

    【讨论】:

      猜你喜欢
      • 2015-12-18
      • 1970-01-01
      • 2015-04-01
      • 1970-01-01
      • 2023-01-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多