Failed to execute request because the App-Domain的解决办法
来源:岁月联盟
时间:2008-10-29
具体情况如下:
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the “Refresh” button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
查看Event Viewer,看到的错误为:
Error:Failed to execute request because the App-Domain could not be created. Error: 0×80070005 Access is denied.
开启ASP.NET 网站时,如果发生错误,经查看Web伺服器的「事件检视器」中之「应用程式」,如果错误讯是:
Failed to execute request because the App-Domain could not be created. Error: 0x80131902
基本上,这个情况最可能发生在第一次执行 .Net work 2.0 ,原因不明,但底下的做法大致可以解决此问题:
1.首先开启「命令视窗」,并切换目录到 %SystemRoot%/Microsoft.Net/work/(%SystemRoot% 视你 Windows 安装目录而定,一般是在 C:/Windows)
2.执行 "net stop w3svc" 终止 w3svc 服务
3.切换到下层目录 v2.0.5.xxx
4.执行 "aspnet_regiis.exe -ua" 解除 .Net 安装
5.重新安装 .Net 到 IIS 中 "aspnet_regiis.exe -i"
6.重新启动 w3svc "net start w3svc".