广告:
环境:asp.net mvc2.0 asp.net 3.5 sp1
xp系统iis运行网站提示: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. asp.net环境没有注册好,原因先装asp.net后装iis:
可参照如下步骤重新注册asp.net
开始--运行--cmd
粘贴以下两个命令先后运行:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -ua
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
-ua为删除注册 -i为重新注册
如果提示安装成功,进入iis--默认网站--启动网站(安装后会停止IIS)即可浏览。
如果提示重新注册失败,请在控制面板删除asp.net 2.0和asp.net 3.5相关组件,再重新安装asp.net 3.5 sp1.
2. 网站停止了,请在iis里面启动网站(一般为端口占用)
3. 网站目录没有设置权限,请添加 networkservice和iis_user权限
广告: