0
votes

I was working on VS2013 on a class library project that references MVC dll from the following location:

C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 4\Assemblies\System.Web.Mvc.dll

Then I uninstalled VS2013 then installed VS2015. Now my project is demanding the MVC dll

enter image description here

Please note that the following path: C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 4\

is missing from my computer.

The following compile error appears on build:

Severity Code Description Project File Line Error CS0234 The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)

1
Remove them and add them again.Sirwan Afifi
I can't add them again because the old path C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 4 is missing from my computerAla

1 Answers

0
votes

My guess would be that MVC4 was bundled together with visual studio 2013 and thus is also removed. You could try to reinstall it yourself using the web platform installer or removing the dependencies and re-adding them using nuget (https://www.nuget.org/packages/Microsoft.AspNet.Mvc/4.0.40804) Install-Package Microsoft.AspNet.Mvc -Version 4.0.40804