Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
Ask Question
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:
following the advice in several other SO questions - to no avail
ensuring the dlls are set to copy to local
removing and re-adding references
deleting dlls from the application and adding them back
cleaning and rebuilding the application
restarting the application and my computer
What would cause this? How do I eliminate it?
–
–
–
–
–
–
–
–
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
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.