ASP.net MVC new project cant find any referenced component

1.3k views Asked by At

I created a new ASP.net MVC project(using MVC template) in VS2015 using .NET 4.6 Framework..

However when the project is created ,all the references (shown in the solution explorer ) have a yellow warning symbol next to it.. I even tried manually removing all references and adding them back individually.

The sample code I used for testing cannot use the references and gives me an error. Solution Explorer view and error list

Thanks

3

There are 3 answers

1
Sundar On

Do not delete all references.You can add dll file from NuGet. Go to your project and right click and then click Manage NuGet Package.Add all types yellow warning symbol from online dll file.Like that enter image description here

2
Etienne On

From a quick search you may an illegal character in your path or something along those lines. Check this answer (seems very similar) Check creating a new project in a simpler path

Visual Studio- Illegal characters in path

5
juanvan On

This was a New MVC app you made? Strange all the packages would not be found. If you recompile the project, NuGet should restore any missing packages automatically.

To Manually restore the package goto Tool->NuGet Package Manager->Package Manager Console

In the Console below, enter restore nuget.

For more information on NuGet Commands. NuGet Package Restore