IIS8显示错误503

时间:2014-05-07 04:46:46

标签: windows iis application-pool

surface pro 2 128GB
Win8.1 update1
从[打开/关闭Windows功能]中选择IIS8
安装后,
1.当在IE11中访问http:// localhost时,它表示服务不可用HTTP 503错误
2.启动的DefaultAppPool已自动停止..

==========================
我的问题是:
我该如何解决这个错误?

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

%WINDIR%\ SYSTEM32 \日志文件\ HTTPERR:

#Software: Microsoft HTTP API 2.0
#Version: 1.0
#Date: 2014-05-07 03:50:18
#Fields: date time c-ip c-port s-ip s-port cs-version cs-method cs-uri sc-status s-siteid s-reason s-queuename
2014-05-07 03:50:18 ::1%0 1501 ::1%0 80 HTTP/1.1 GET / - 1 Client_Reset DefaultAppPool


#Software: Microsoft HTTP API 2.0
#Version: 1.0
#Date: 2014-05-07 03:51:56
#Fields: date time c-ip c-port s-ip s-port cs-version cs-method cs-uri sc-status s-siteid s-reason s-queuename
2014-05-07 04:07:49 ::1%0 1636 ::1%0 80 HTTP/1.1 GET / 503 1 AppOffline DefaultAppPool
2014-05-07 04:07:55 ::1%0 1637 ::1%0 80 HTTP/1.1 GET / 503 1 AppOffline DefaultAppPool
2014-05-07 04:08:06 ::1%0 1656 ::1%0 80 HTTP/1.1 GET / 503 1 AppOffline DefaultAppPool
2014-05-07 04:08:06 ::1%0 1659 ::1%0 80 HTTP/1.1 GET /favicon.ico 503 1 AppOffline DefaultAppPool
2014-05-07 04:08:06 ::1%0 1660 ::1%0 80 HTTP/1.1 GET /favicon.ico 503 1 AppOffline DefaultAppPool
2014-05-07 04:08:06 ::1%0 1661 ::1%0 80 HTTP/1.1 GET /favicon.ico 503 1 AppOffline DefaultAppPool
2014-05-07 04:12:05 ::1%0 1763 ::1%0 80 HTTP/1.1 GET / 503 1 AppOffline DefaultAppPool

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

我在EventLog中发现了一个错误:

USER: IIS APPPOOL\DefaultAppPool

Windows cannot log you on because your profile cannot be loaded. Check that you are connected to the network, and that your network is functioning correctly.

DETAIL: Only part of a ReadProcessMemory or WriteProcessmemory request was completed

3 个答案:

答案 0 :(得分:0)

快速修复:

IIS - >应用程序池 - > DefaultAppPool - >高级设置 - >加载用户个人资料=错误

答案 1 :(得分:0)

可能需要从IIS中的模块中删除FastcgiTesting-Register。 更多信息:

https://blogs.msdn.microsoft.com/vpandey/2009/08/04/http-error-503-the-service-is-unavailable/

答案 2 :(得分:0)

经过一番调查,我发现我的问题是由于应用程序池帐户身份验证问题引起的。我的ASP NET应用程序在Docker容器上运行,并在其中创建一个无密码的管理帐户,并配置应用程序池以供使用。

问题是我忘记设置密码有效期策略,并且显然在默认有效期之后,只要重新启动容器,问题就开始出现。因此,现在我在脚本中添加了另一个命令,以防止密码过期。

这是完整的配置脚本:

# create admin user
NET USER admin /add
NET LOCALGROUP Administrators admin /add
WMIC USERACCOUNT WHERE "Name='admin'" SET PasswordExpires=FALSE

# configure app pool
Import-Module WebAdministration
Set-ItemProperty IIS:/AppPools/DefaultAppPool -name processModel.identityType -Value SpecificUser
Set-ItemProperty IIS:/AppPools/DefaultAppPool -name processModel.userName -Value "admin"
Set-ItemProperty IIS:/AppPools/DefaultAppPool -name processModel.password -Value ""

请注意不要在隔离的容器之外运行它!由于它会创建潜在危险的免费密码管理员帐户。