Pieces of the puzzle:
The solution I'm running in Visual Studio works and runs as expected with IISExpress.
To set up my site to use IIS, I tried the following steps:
At this point, I get an HTTP 500.21
error.
I have also tried to run aspnet_regiis.exe -i
using Visual Studio's command prompt (as an Administrator), but each time I run the command, I receive the following error:
Command 'aspnet_regiis.exe' is not valid.
I also confirmed that I do have the right aspnet_regiis.exe
installed (by checking here) (.NET Framework version 4 (64-bit systems)).
What do I need to do to register .NET Framework 4.5 in IIS 7.5?
You can find the aspnet_regiis in the following directory:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319
Go to the directory and run the command form there. I guess the path is missing in your PATH variable.