Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not load file or assembly 'Antlr3.Runtime (1)' or one of its dependencies

I'm getting this error while trying to run my MVC4 project, it was working fine until last time on my other machines, but when I'm 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)

After reading about this here I've tried to do:

Install-Package Antlr3.Runtime -Pre

but it didn't help, any ideas?

like image 680
Maven Avatar asked Nov 24 '13 20:11

Maven


3 Answers

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

This helped me:

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

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

like image 116
AH. Avatar answered Nov 17 '22 01:11

AH.


Try to delete the temporary files for ASP.Net by doing one of these:

  • Enter %TEMP% in the File Explorer and delete all the temporary files.
  • Go to folder "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files" and delete all files.
like image 43
sachin kulkarni Avatar answered Nov 17 '22 01:11

sachin kulkarni


Don't forget to clear also the Temporary ASP.NET Files in Framework64. That did the trick for me.

  • C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files
  • C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files
like image 30
Mathijs Vlasveld Avatar answered Nov 16 '22 23:11

Mathijs Vlasveld