Failed to execute request because the App-Domain could not be created. Error: 0×80131902的解决方法
今天打开iis下的asp.net网站发现,“服务器应用程序不可用”,并且查看事件查看器发现了,Failed to execute request because the App-Domain could not be created. Error: 0×80131902的解决方法 的报错,google了一下,找到一个解决的方法:
- 首先运行 cmd,切换目录到 %SystemRoot%\Microsoft.Net\Framework\ (%SystemRoot% C:\Windows)
- net stop w3svc - 停止w3svc服务
- cd v2.0.50727 切换到此目录
- aspnet_regiis.exe -ua 删除.Net安裝
- aspnet_regiis.exe -i 重新安装iis的.net
- net start w3svc 重启w3svc服务
搞定,发现可能是我先装好vs2008后,再安装iis导致的。本不想安装iis但是有个asp.net的项目,晕呀。

