I have Visual Studio 2010 and Visual Studio 2013 installed on my machine, but I am unable to create or use a web project targeting the ASP.Net 4.0 framework. I have the following directories in my c:\windows\Microsoft.Net directory:
- framework directory
- v1.0.3705
v1.1.4322
v2.0.50727
v3.0
v3.5
v4.0.30319 - Framework64 directory:
- v2.0.50727
v3.0
v3.5
v4.0.30319
The problem is that the System.Web.dll (and probably others) are not registered in the GAC. So I cannot compile the project because the System.Web.DLL is not found. Here is the contents of my GAC:
PS U:\> dir gac: | findstr /i "system.web"
2.0.0.0 System.Web
3.5.0.0 System.Web.Abstractions
3.5.0.0 System.Web.DataVisualization
3.5.0.0 System.Web.DataVisualization.Design
3.5.0.0 System.Web.DynamicData
3.5.0.0 System.Web.DynamicData.Design
3.5.0.0 System.Web.Entity
3.5.0.0 System.Web.Entity.Design
1.0.61025.0 System.Web.Extensions
3.5.0.0 System.Web.Extensions
1.0.61025.0 System.Web.Extensions.Design
3.5.0.0 System.Web.Extensions.Design
2.0.0.0 System.Web.Mobile
2.0.0.0 System.Web.Mvc
2.0.0.0 System.Web.RegularExpressions
3.5.0.0 System.Web.Routing
2.0.0.0 System.Web.Services
PS U:\>
As you can see only 2.0 and 3.5 components are installed, but 4.0 components are not installed in the GAC. How do you re-register the 4.0 components into the GAC.