Issues enabling IIS-ASPNET module in windows nano server

I am running an application that requires IIS-ASPNET & IIS-ASPNET45 features enabled. When i run my commands in windowsservercore container it runs fine, but fails in nano server with below error message.

PS C:> Enable-WindowsOptionalFeature -Online -FeatureName IIS-ASPNET45 -all

Enable-WindowsOptionalFeature : Feature name IIS-ASPNET45 is unknown.
At line:1 char:1

  • Enable-WindowsOptionalFeature -Online -FeatureName IIS-ASPNET45 -all
  •   + CategoryInfo          : NotSpecified: (:) [Enable-WindowsOptionalFeature], COMExcepti
      + FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFeatureCommand
    
    

Can someone help,