【问题标题】:Could not load file or assembly in github project无法在 github 项目中加载文件或程序集
【发布时间】:2015-05-20 12:36:43
【问题描述】:

我正在使用 github 在一个小组中开展一个项目,它是一个 asp.net mvc 项目。我的小组中没有其他人对此有任何问题,但是当我尝试将服务器运行到我们网站的主页时,我收到错误:

Could not load file or assembly 'Microsoft.Owin.Security' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Owin.Security' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

我已经尝试在 Nuget 中安装每个这样出现的包,但有些文件似乎不是包或具有明显的包名称。我也尝试使用包管理器来安装这些包,但这似乎也不起作用。删除整个项目并重新克隆它不起作用,重新安装 Visual Studio 也不起作用。有什么办法可以解决这个问题吗?

【问题讨论】:

    标签: c# asp.net-mvc visual-studio nuget asp.net-identity


    【解决方案1】:

    清除您的 nuget 缓存并删除包文件夹内容。关闭 Visual Studio 并尝试从包管理器再次安装。

    【讨论】:

    • 这样做然后清理解决方案,关闭视觉工作室,然后打开和重建对我有用(现在)。谢谢。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-08-17
    相关资源
    最近更新 更多