Something on our MVC 4 project, on my computer, seems very broken :( It started out with the project suddenly thinking it's a Windows project, I could add no views or controllers. I repaired it to the point where it is MVC again, but 1) it has no Intellisense for Razor, and 2) it doesn't start, showing this error:
Die Datei oder Assembly "Antlr3.Runtime" oder eine Abhängigkeit davon wurde nicht gefunden. Die gefundene Manifestdefinition der Assembly stimmt nicht mit dem Assemblyverweis überein. (Ausnahme von HRESULT: 0x80131040)
(sorry, no full exact English translation found. It means that it is trying to load the wrong version of the Antlr3.Runtime).
What I tried and didn't work:
- Deleting all files in %TEMP%
- cleaning and rebuilding the solution
- uninstalling Antlr3 and dependent libraries (it is required by MVC optimization, which seems to be connected to the Intellisense problem). Updated NuGet manager, then re-installed Antlr and the others.
Checked the properties of the Antlr3 reference. It is set to "Specific version -> false" and in Web.config, I have the entry
<dependentAssembly> <assemblyIdentity name="Antlr3.Runtime" publicKeyToken="eb42632606e9261f" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-3.5.0.2" newVersion="3.5.0.2" />
The strange thing is that
- when I create a new MVC project, it works
- the project works on my co-worker's computer just fine.
Because of the second point, I completely abandoned my old workspace, created a new one, and got the project fresh from TFS. I also did a diff on our .csproj files. This was before I attempted the solutions above. It still didn't help.
Any ideas what I could do from here?