Share via


Missing dll files in "C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 4\Assemblies", only xml

Question

Monday, December 17, 2018 11:12 AM

Hello, 

I want to add reference to "System.Web.MVC" in Reference Manager in Visual Studio, but it hasn't got this item. Also i want to add this reference via explorer: "C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 4\Assemblies", but this folder has only xml files:

  • System.Net.Http.Formatting.xml
  • System.Net.Http.WebRequest.xml
  • System.Net.Http.xml
  • System.Web.Http.SelfHost.xml
  • System.Web.Http.WebHost.xml
  • System.Web.Http.xml
  • System.Web.Mvc.xml

I know that i can download mvc files via nuget, but i should do my project with default references to files or references in Reference Manager.

I use Visual Studio 2015.

Is this problem with my installation of visual studio, that folder dos't have ddl files?

Thanks for any help.

All replies (2)

Tuesday, December 18, 2018 6:14 AM ✅Answered

Hi Olexandra,

Welcome to the MSDN forum.

I tried to create a MVC 4 project and check the assemblies folder in my side. Actually, you should have saw system.web.mvc.dll in this folder. So I suspect your installation is incompletely.

Please go through those workarounds to troubleshot it:

  1. In VS 2015, the System.Web.Mvc in the "assemblies" tab that need to look into "assemblies-extensions" tab rather than the default "assemblies-framework" tab.
  2. Check the update flag in upper right corner of IDE. If there is pending hotfix, please update them.
  3. to unchecked then re-checked the Microsoft Web developer tools option in install workload list.
  4. Close all instance and VS. then go to “uninstall program” list in control panel to right click “change” – “repair” to repair it.
  5. If not, I recommend you to add this dll by Nuget command line, refer to this similar thread: https://stackoverflow.com/questions/3648364/why-is-system-web-mvc-not-listed-in-add-references .

Looking forwards your reply.

Best Regards.

May

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]


Friday, December 21, 2018 1:10 PM

Thanks for your reply. Unfortunately, first steps didn't fix the problem, so i think i should add all dlls' via nuget.