1、将64位.NET注册到IIS上
命令提示符打开输入命令:cscript C:\inetpub\adminscripts\adsutil.vbs SET
W3SVC/AppPools/Enable32bitAppOnWin64 0
注册64位.NET2.0:
C:\windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis -i
注册64位.NET4.0:
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis -i
2、将32位.NET注册到IIS上
命令提示符打开输入命令:cscript C:\inetpub\adminscripts\adsutil.vbs SET
W3SVC/AppPools/Enable32bitAppOnWin64 1
注册32位.NET2.0:
C:\windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis -i
注册32位NET4.0:
C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis -i