HTTP 服务器无法创建主连接套接字

Microsoft.Windows.InternetInformationServices.10.0.HTTP.Server.could.not.create.the.main.connection.socket (Rule)

Knowledge Base article:

摘要

为成功执行 Internet Information Services (IIS) World Wide Web 发布服务 (W3SVC) 的活动,必须避免涉及文件访问、内存可用性和网络连接的任何 I/O 错误。此外,必须可访问和运行任何使用的脚本以及正确配置任何包含的文件。

解决方法

检查连接失败

若要解决此连接问题,请检查事件日志消息以查看消息中包含的特定错误号。此错误号将不同于事件 ID。要执行此操作,请查看以下步骤。

检查特定错误号

要检查特定错误号,请执行以下操作:

查找有关特定错误号的详细信息

若要了解有关特定错误号的详细信息,请执行以下操作:

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.10.0.WebServer
CategoryAlert
EnabledTrue
Event_ID2206
Event SourceMicrosoft-Windows-IIS-W3SVC-WP
Alert GenerateFalse
RemotableTrue
Event LogApplication

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
WA WriteAction Microsoft.Windows.Server.IIS.10.0.GenerateAlertAction.SuppressedByDescription Default

Source Code:

<Rule ID="Microsoft.Windows.InternetInformationServices.10.0.HTTP.Server.could.not.create.the.main.connection.socket" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.10.0.WebServer" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-IIS-W3SVC-WP</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>2206</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WA" TypeID="Microsoft.Windows.Server.IIS.10.0.GenerateAlertAction.SuppressedByDescription">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.InternetInformationServices.10.0.HTTP.Server.could.not.create.the.main.connection.socket.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>