Server Application Unavailable

Server Application Unavailable,第1张

概述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 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.

===============================================================================

发生原因是: 

IIS默认的应用程序隔离机制被称为:“工作进程隔离模式”,在此模式中,应用程序被分为多个组,每个组就是一个“应用程序池” ,每个应用程序池之间是相互隔离的。 隔离的好处当然就是安全啦,稳定啦,等等。IIS中的每个应用程序池由一个“工作进程”分别进行管理,也就是"W3wp.exe" 。如果有多个应用程序池中的程序运行,我们就能看到多个w3wp.exe。 我们平时新建的虚拟目录都默认被指向IIS6的“DefaultAppPool" 中, 所以在默认情况下,不管你有多少个asp.net程序在运行,在“windows任务管理器”中你只能看到一个w3wp.exe进程。

 

.net Framework 2.0的程序与.net Framework1.1(或1.0)的程序被放入同一个应用程序池(默认情况下放入DefaultAppPool池), 也就是由同一个工作进程: w3wp.exe 进行管理,而单个工作进程是无法同时管理不同的程序(或者不同版本的程序)的. 如果先访问.net framework 1.1的页面,则工作进程先加载并管理了 1.1版本的程序集,此时访问.net framework 2.0的web程序页面,Server application unavailable 错误就出来了. 反之,如果在默认应用程序池的w3wp.exe尚未启动前先访问了 2.0的web程序(此时应用程序集已经加载了.net framework2.0的Web程序集),再访问1.1或1.0的Web程序页面时,同样会出现"服务器应用程序不可用"

--------------------------------------------------------------------------------------------------------------------------------------------

解决办法:

(1)首先进入cmd,切换目录到 %systemRoot%\Microsoft.Net\framework\(%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

总结

以上是内存溢出为你收集整理的Server Application Unavailable全部内容,希望文章能够帮你解决Server Application Unavailable所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1018275.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-23
下一篇 2022-05-23

发表评论

登录后才能评论

评论列表(0条)

保存