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(Internet 服务器应用程序编程接口)扩展功能和筛选器可扩展和修改 IIS 的请求处理功能。ISAPI 筛选器写入耗时长、不提供会话处理的本机支持且维护过程繁琐。IIS 6.0 和 IIS 10 隔离运行 ISAPI 应用程序可增强服务器稳定性。同时仍然可以在 IIS 10 中使用 ISAPI 筛选器,这样开发人员便可以轻松添加被管理模块或本机模块以集成到 IIS 10 的新模块体系结构。

解决方法

IIS 10 不支持 SF_NOTIFY_READ_RAW_DATA

IIS 10 不再支持 ISAPI 筛选器的 SF_NOTIFY_READ_RAW_DATA 通知。如果必须使用具有此通知的 ISAPI 筛选器,则必须在 IIS 5.0 隔离模式中的 IIS 6.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>