Maybe you have to execute the following in the Visual Studio Tools command prompt:
aspnet_regiis -i
You can read more about the ASP.NET IIS Registration Tool (Aspnet_regiis.exe) here.
On Windows 8.1, since .NET 4.5 is built-in, the fix is to run this from an administrative command-prompt:
dism.exe /Online /Enable-Feature /all /FeatureName:IIS-ASPNET45
If you've installed .NET framework 4.6, you may see this error due to a VS bug. Workarounds and resolutions here:
http://blogs.msdn.com/b/webdev/archive/2014/11/11/dialog-box-may-be-displayed-to-users-when-opening-projects-in-microsoft-visual-studio-after-installation-of-microsoft-net-framework-4-6.aspx
EDIT:
As noted in some of the comments, this can happen behind the scenes after upgrading to Windows 10 or Visual Studio 2015.
For Windows 8 client computers, turn on "IIS-ASPNET45" in "Turn Windows Features On/Off" under "Internet Information Services-> World Wide Web Services -> Application Development Features -> ASP.NET 4.5".
The .net framework overwrites 4.0 folder so run this command:
Register .net framework to IIS goto
Start -> run-> cmd -> run as administrator
type:
cd C:\Windows\Microsoft.NET\Framework\v4.0.30319
aspnet_regiis.exe -i
Resolved it with VS update.
Follow this link (https://blogs.msdn.microsoft.com/webdev/2014/11/11/dialog-box-may-be-displayed-to-users-when-opening-projects-in-microsoft-visual-studio-after-installation-of-microsoft-net-framework-4-6/)
Resolution: Microsoft has published a fix for all impacted versions of Microsoft Visual Studio.
Visual Studio 2013 –
Download Visual Studio 2013 Update 4 For more information on the Visual Studio 2013 Update 4, please refer to: Visual Studio 2013 Update 4 KB Article Visual Studio 2012
An update to address this issue for Microsoft Visual Studio 2012 has been published: KB3002339 To install this update directly from the Microsoft Download Center, here Visual Studio 2010 SP1
An update to address this issue for Microsoft Visual Studio 2010 SP1 has been published: KB3002340 This update is available from Windows Update To install this update directly from the Microsoft Download Center, here
Not required to type c:\
Start -> run-> cmd -> Run as administrator and execute below command
.NET Framework version 4 (32-bit systems)
.NET Framework version 4 (64-bit systems)
Alternatively use Command Prompt from Visual Studio tools: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Visual Studio 2012\Visual Studio Tools>VS2012 x86 Native Tools Command Prompt
Version could vary.. Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With