When deploying a local web project (win7, vs2017 development) to IIS, the following error occurred
Framework v4.0, and then enabling
IIS, the Framework is not fully installed
cmd -> run as administrator ->%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i
If it still doesn't work, check the application pool of IIS to see if the integrated mode is used, and if not, change to the integrated mode.