ServerApplicationUnavailable错误的解决方法

来源:本站原创 点击数: 发布时间:2010年01月21日

错误如下:

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.



分析1:

请参考:http://help.powereasy.net/help/SiteFactory/2263.html


以上如不能解决问题,请继续。

分析2:

请查看系统的“事件管理器”,于是查看服务器的“事件管理器”中的“应用程序”日志,发现错误信息是:

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

您试图在此 Web 服务器上访问的 Web 应用程序当前不可用。请点击 Web 浏览器中的“刷新”按钮重试您的请求。

管理员注意事项:详述此特定请求失败原因的错误信息可在 Web 服务器的系统事件日志中找到。请检查此日志项以查明导致该错误发生的原因。

基本上,这个情況最可能发生在第一次执行 .Net work 2.0的时候 ,原因总结一下,大致有两种:

1..net2.0组件没有正确注册到IIS。
2..net网站程序目录的权限没有设置好。

解决办法:

我们应该从第一种情况开始排查:
1.首先进入cmd,切换目录到 %SystemRoot%Microsoft.Netframework(%SystemRoot% 是你 Windows 的安装目录,一般就是 C:Windows)
2.输入命令 “net stop w3svc”,先停止 w3svc 服务;
3.输入命令,切换到下层目录 一般是cd v2.0.5*;
4.执行 “aspnet_regiis.exe -ua” 解除 .Net 安装;
5.重新安装 .Net 到 IIS 中 “aspnet_regiis.exe -i”
6.重新启动 w3svc 即输入:net start w3svc


如果按照以上的方法还不能解决问题,请再次检查你的.net网站的目录,把Network Service“完全控制”权限加进去。