I got the following error when I run this command: aspnet_regiis.exe -i
aspnet_regiis.exe -i
C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319>aspnet_regiis.exe
According to this .NET Framework Versions and Dependencies page, you need at least .NET 4.6 to be compatible with Windows 10.
Your error message implied that ASP.NET 4.5 should be installed instead.
Either way, the 4.0 .NET Framework does not seem to be supported on Windows 10.