Server Application Unavailable 【Failed to execute request because the AppDomain could not be created.】的解决办法

页面出现问题:

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.

 

 

 

打开ASP.NET 网站时,发生错误,经查看Web服务器的「事件查看器」中之「应用程序」,如果错误是:

Failed to execute request because the App-Domain could not be created. Error: 0x80131902

基本上,这种情况最可能发生在第一次执行 .Net framework 2.0 ,原因不明,但下面的做法大致可以解決此问题:

1.首先打开「命令提示符」,切换目录到 %SystemRoot%\Microsoft.Net\Framework\ (%SystemRoot% 視你 Windows 安裝目录而定,一般是在 C:\Windows)

2.执行 "net stop w3svc" 停止 w3svc 服务
3.切换到下级目录 v2.0.50727
4.执行 "aspnet_regiis.exe -ua" 解除 .Net 安裝
5.重新安裝 .Net 到 IIS 中 "aspnet_regiis.exe -i"
6.重新启动 w3svc "net start w3svc".

 

真累人啊!不过终于搞好了!Happy 啊!O(∩_∩)O哈哈~

原文地址:https://www.cnblogs.com/haoliansheng/p/1506944.html