I am trying to use bat to let IIS run the asp.net application on a 64-bit Windows 7 machine (professional) and it seems to be constantly confronted with this problem. I run the bat file as administrator. The entry in my bat file that I use looks like this:
%systemroot%\sysnative\dism /online /enable-feature /all /featurename:IIS-ASPNET45
According to the documentation I read, all switches should include all the parent functions needed to run ASP.net 4.5. I also tried using only IIS-ASPNETand IIS-ASPNET40, everyone got the same error.
Error 87 the all option is not recognised in this context
At first I tried to perform each function necessary to run my application separately, but ran into similar problems.
source
share