Reputation: 5587
Whenever I try to compile my VS2015 application, I a long list of errors like:
The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
However, as soon as I double click the error to view the file, it opens the file, has a slight delay, then clears ALL the errors.
If I proceed to try and build again, I get the same list of errors and the process repeats itself.
UPDATE I forgot to mention that I have tried:
What would cause this? How do I eliminate it?
Upvotes: 5
Views: 28443
Reputation: 2452
try download and copy System.Web.Mvc.dll into your project bin folder
Upvotes: -1
Reputation: 595
in my case it worked only after I run in the Package Manager Console following command
PM> Install-Package Microsoft.AspNet.Mvc
My environment was:
1) Visual Studio 2017
2) Freshly created Angular 4 app
3) MVC 6 as a back end
Upvotes: 2
Reputation: 1863
Upvotes: 10