An error occurred while trying to open my asp.net 4.5 MVC web application using VS 2012. Asp.net is not registered on the server

I have Windows Server 2012 R2 and Visual Studio Professional 2012 . I am now using asp.net 4.5 mvc 4 to develop a web application without any problems. but now when I try to open a 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

can anyone listen to what is happening?

and here's how to turn on / off Turn Window features: - enter image description here

Now I have done this modification, as I read through the mail on the Internet, which can help remove the cache. so I deleted this folder: -

%LocalAppData%\Microsoft\VisualStudio\11.0\ComponentModelCache

Visual Studio, 2 , , , .. , ?

+6
5

, .Net framework.

IIS, .

:

C:\Windows\Microsoft.NET\Framework\v4.0.30319> aspnet_regiis -i

( )

C:\Windows\Microsoft.NET\Framework64\v4.0.30319> aspnet_regiis -i

IIS , :.Net FrameWork v4.0.xxxxxx

+3
aspnet_regiis -i

ASP.NET IIS Registration, , :
.NET Framework ASP.NET IIS.
ASP.NET.
ASP.NET.

1: -

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

2: -

KB3002339, VSUpdate . Windows . Bing/Google KB3002339 . https://twitter.com/blowdart/status/542542342075346945

+2

, .NET 4.6 (- Windows Update). .NET 4.6 Visual Studio 2012.

NET 4.6, .

IIS, , - - HTTP, , , , . Google OFF , (, FTP).

0
0

,

1) Visual studio

2) Please host your site in IIS (not on a port like localhost: 65389 ...)

3) Make sure in the application pool (with framework 4.0)

4) run C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319> aspnet_regiis -i command

0
source

All Articles