若是卸载了.net4.5 服务器黑屏 用下面命令 开启服务器桌面版(每一个/前带空格)shell
dism /online /enable-feature /all /featurename:servercore-fullserver /featurename:server-gui-shell /featurename:server-gui-mgmtwindows
window server 2012 安装 .net 3.5服务器
在cn_windows_server_2012_r2_x64_dvd_2707961.iso,sources下将sxs文件夹拷贝到C盘根目录,asp.net
sxs文件夹 可本身提取,也可网上搜索网页共享的ui
dism.exe /online /enable-feature /all /featurename:NetFX3 /Source:c:\sxsspa
卸载 .net 4.5.net
dism /online /disable-feature /featurename:IIS-ASPNET45server
安装.net 4.5it
dism /online /enable-feature /featurename:IIS-ISAPIFilterio
dism /online /enable-feature /featurename:IIS-ISAPIExtensions
dism /online /enable-feature /featurename:IIS-NetFxExtensibility45
dism /online /enable-feature /featurename:IIS-ASPNET45
注册asp.net 2.0 到IIS
cd C:\Windows\Microsoft.NET\Framework64\v2.0.50727
aspnet_regiis.exe -i