无法在 github 项目中加载文件或程序集

Could not load file or assembly in github project

我正在使用 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。我能做些什么来解决这个问题吗?

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