Continuous Learning and Sharing of Team Foundation Server and Application Lifecycle Management RSS 2.0
# Saturday, September 28, 2013

My main developer PC (Windows 8) had been running slow lately so I decided to wipe the drive and perform a clean installation of Windows 8.1.  I have been running the Windows 8.1 preview on my Surface Pro for the past couple months and I love the improvements.  Most of the improvements are subtle but make using Windows much more user friendly.  This time I’m going to try to be more selective in what I install on it and use Virtual Machines for most of the development so I don’t slow down my host.  So far the laptop has been incredibly fast.  I decided to install Visual Studio 2012 (and installed Update 3) on my host because there are a lot of times I need to access TFS or create a sample project and I don’t necessarily want to have to start one of my VMs.  When I tried to create an ASP.NET MVC 4 application I was prompted with these two error messages.  I was able to get both resolved but I thought I would post this in case anyone else runs into this.

The first dialog prompted me that

Configuring Web http://localhost:8547/ for ASP.NET 4.5 failed. You must manually configure the site for ASP.NET 4.5 in order for the site to run correctly.  ASP.NET 4.0 has not been registered on the Web server. You need to manually configure your Web server for ASP.NET 4.0 in order for your site to run correctly.


Most of the posts suggested deleting the IISExpress folder under documents because it recreates it the next time an application is run.


I deleted the folder, reran Visual Studio but I still received the same error.  I repaired .NET Framework 4.5 as shown below and it fixed that message.


When I tried to open the solution after I fixed the first error, the following dialog still displayed. 

ASP.NET 4.5 has not been registered on the Web server. You need to manually configure your Web server for ASP.NET 4.5 in order for your site to run correctly.


I had received similar messages in the past working with previous frameworks.  My first thought was to go to a command prompt and register .NET 4.5 with IIS.  I ran aspnet_regiis and received the following message.  It look like now in Windows 8/8.1, this is a Windows Features option.

This option is not supported on this version of the operating system.  Administrators should instead install/uninstall ASP.NET 4.5 with IIS8 using the “Turn Windows Features On/Off” dialog, the Server Manager management too, or the dism.exe command line tool.


Using the handy Windows-X key combination I selected the Programs and Features dialog.  I chose Turn Windows features on or off and the dialog appeared.  I expanded the .NET Framework 4.5 Advanced Services and selected ASP.NET 4.5.  Everything worked after that!


Note:  This is also required on Windows 8 but I didn’t have to do this manually when I installed Visual Studio 2012 on Windows 8.  I’m also not sure if installing Visual Studio 2013 will automatically select this.


Saturday, September 28, 2013 6:12:00 AM (Central Daylight Time, UTC-05:00)  #    Comments [0] -
ASP.NET | Visual Studio 2012 | Windows 8.1

Visual Studio ALM MVP
Microsoft Visual Studio ALM MVP
<September 2013>
About the author/Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2016
Mike Douglas
Sign In
Total Posts: 107
This Year: 0
This Month: 0
This Week: 0
Comments: 90
All Content © 2016, Mike Douglas
DasBlog theme 'Business' created by Christoph De Baene (delarou)