无法加载文件或程序集“Antlr3.Runtime(1)”或它的某一个依赖它的、加载、文件、程序

2023-09-02 01:55:20 作者:你是我命中的劫

我收到此错误试图运行我的 MVC4 的项目,它工作在我的其他机器罚款,直到最后一次,但是当我试图从运行另一台机器它给我这个错误:

I am getting this error while trying to run my MVC4 project, it was working fine untill last time on my other machines, but when i am trying to run it from another machine it's giving me this error:

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

阅读有关此这里后,我试过的做:

Install-Package Antlr3.Runtime -Pre

但仍然没有解决,请大家帮忙。

But still not solved, please help.

推荐答案

我与自由NLOG记录平台实验时遇到了同样的问题。

I encountered the same problem when experimenting with the free Nlog logging platform.

这帮助我:

在文件浏览器中输入%temp%,并删除所有临时文件。

Enter %TEMP% in the File Explorer and delete all the temporary files.

从那以后,我开始在Visual Studio我MVC5项目时,并没有出现错误。

After that I didn't get the error when starting my MVC5 project in Visual Studio.