一. 需要把对应的程序池
由于项目需要.NET v2.0 的的因此需要设置正确的.net CLR 版本已经托管通道模式,
更改设置后,仍然提示相同的失败,
因为安装framework是在安装iis之前,asp.net没有注册造成的
二. 注册对应的asp.net
在cmd 里面执行:C:/Windows/Microsoft.NET/Framework/v2.0.50727/aspnet_regiis -i
正常会是成功的,
但是有报错提示失败:
Note pkgmgr.exe has been deprecated please update your scripts to use dism.exe
---------------------------
Windows Package Manager
---------------------------
Note: PkgMgr.exe has been deprecated. Please update your scripts to use DISM.exe to install, uninstall, configure, and update features and packages for Windows. See http://go.microsoft.com/fwlink/?LinkID=195329 for more information. Operation failed with 0x8007000B 试图加载格式不正确的程序。
---------------------------
确定
--------------------------- 三. 使用 dism.exe
新的windows server 环境可能没有对应的工具
update windows 到最新版本,然后,cmd 里面执行下面语句就可以了
|