IIS 10 不支援 SF_NOTIFY_READ_RAW_DATA 篩選器通知

Microsoft.Windows.InternetInformationServices.10.0.SFNOTIFYREADRAWDATA.filter.notification.is.not.supported.in.IIS.10 (Rule)

Knowledge Base article:

摘要

Internet Information Services (IIS) ISAPI (網際網路伺服器應用程式開發介面) 延伸模組和篩選器可延伸和修改 IIS 的要求處理功能。ISAPI 篩選器需要較長的寫入時間,對工作階段處理未提供原生支援,且維護作業較為複雜麻煩。IIS 6.0 和 IIS 10 會在隔離環境中執行 ISAPI 應用程式來增強伺服器穩定性。雖然 ISAPI 篩選器仍可用於 IIS 10,但開發人員新增整合至 IIS 10 之新模組化結構的受管理或原生模組會比較容易。

解決方式

IIS 10 不支援 SF_NOTIFY_READ_RAW_DATA

IIS 10 已不再支援 ISAPI 篩選器使用 SF_NOTIFY_READ_RAW_DATA 通知。如果您必須使用需要此通知的 ISAPI 篩選器,則必須在 IIS 6.0 上使用 IIS 5.0 隔離模式執行該篩選器 (不過請注意,這並非建議的做法)。如需詳細資訊,請參閱文章「 在 Internet Information Services 版本 6.0 中登錄 SF_NOTIFY_READ_RAW_DATA 事件的 ISAPI 篩選器的相關資訊」。

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.10.0.WebServer
CategoryAlert
EnabledTrue
Event_ID2261
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.SFNOTIFYREADRAWDATA.filter.notification.is.not.supported.in.IIS.10" 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>2261</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.SFNOTIFYREADRAWDATA.filter.notification.is.not.supported.in.IIS.10.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>