I have added a new web site on an existing Windows Server 2012 IIS installation. The installation already had ASP.NET configured on the existing sites.
What is the right way to enable ASP.NET on the new web site? All the documentation I've found talks about using Server Manager to add the role/feature, but that's already there so that's not helpful.
On previous versions I would use
aspnet_regiis -i but that doesn't work on Server 2012:
C:\Windows\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -i Microsoft (R) ASP.NET RegIIS version 4.0.30319.17929 Administration utility to install and uninstall ASP.NET on the local machine. Copyright (C) Microsoft Corporation. All rights reserved. Start installing ASP.NET (4.0.30319.17929). This option is not supported on this version of the operating system. Administr ators should instead install/uninstall ASP.NET 4.5 with IIS8 using the "Turn Win dows Features On/Off" dialog, the Server Manager management tool, or the dism.e xe command line tool. For more details please see http://go.microsoft.com/fwlin k/?LinkID=216771. Finished installing ASP.NET (4.0.30319.17929).
What is the correct procedure?
Edit: Here's a screenshot proving the role is correctly configured.
The machine is running ASP.NET applications correctly on another web site so I know the role is 100% installed correctly.