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

时间:2015-03-17 21:24:46

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

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

1 个答案:

答案 0 :(得分:0)

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