Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when trying to open my asp.net 4.5 MVC web application using VS 2012. Asp.net has not been registered on the server

I have a Windows Server 2012 R2 & Visual Studio Professional 2012. now i use to develop an asp.net 4.5 mvc 4 web application without any problem. but now when i try to open the project i will get this error:-

enter image description here

if i click OK then this error:-

enter image description here

if i click OK the visual studio will stop working

enter image description here

so can anyone adivce what is going on ??

and here is how the Turn windows features on/off looks like:- enter image description here

Now i did this modification, as i read on a post in the internet that deleting the cache might help. so i removed this folder:-

%LocalAppData%\Microsoft\VisualStudio\11.0\ComponentModelCache

then i tried to open the Visual Studio, and i got the same 2 errors, but the visual studio did not stop working, and i was able to modify the code i rebuild the project and run it.. so not sure what is going on ?

like image 267
john Gu Avatar asked Jul 19 '17 14:07

john Gu


People also ask

Does .NET Framework 4.5 work on Windows 10?

NET 4.5. 1 cannot be installed on Windows 10, only 4.6 and later. So if your application is incompatible with . NET 4.6 and later you will need to update your application.

How do I enable .NET Framework 4.5 on Windows?

Select Start > Control Panel > Programs > Programs and Features. Select Turn Windows features on or off. If not already installed, select Microsoft . NET Framework and click OK.

How do I install ASP.NET 4.5 on Windows 10?

Open the Control Panel, click "Programs" and then click "Turn Windows features on or off" to open the "Windows Features" dialog. 2. Enable ". NET Framework 4.5 Advanced Services > ASP.NET 4.5" (version 4.6 in Windows 10):


1 Answers

aspnet_regiis -i

Using the ASP.NET IIS Registration tool, you can perform tasks such as the following:
Register or remove the .NET Framework ASP.NET installation with IIS.
Create new ASP.NET application pools.
Display the status of all installed versions of ASP.NET.
More here

Edit 1:-

dism /online /enable-feature /featurename:IIS-ASPNET45 /all

Try running this command

Edit 2:-

Try downloading and installing this update

This is a related tweet

If you get KB3002339 hanging kill the VSUpdate process in task manager. Windows Update will finish. Bing/Google KB3002339 install manually. https://twitter.com/blowdart/status/542542342075346945

like image 86
Parv Sharma Avatar answered Sep 19 '22 15:09

Parv Sharma