XML: impossibile creare un'istanza della classe. Verificare che il file Msxml2.dll sia presente nell'installazione di SQL Server

Microsoft.SQLServer.2008.XML___Failed_to_instantiate_class._Make_sure_Msxml2.dll_exists_in_the_SQL_Server_installation_1_5_Rule (Rule)

Knowledge Base article:

Riepilogo

Il file Msxml2.dll non è presente nel computer in cui è installato SQL Server o non è stato caricato dalla directory di sistema durante l'elaborazione di una caratteristica XML quale sp_xml_preparedocument. Se il file esiste, è possibile che non sia stato registrato correttamente o che una delle sue dipendenze non esista.

Se è stata eseguita l'installazione di MSDE SP3a in un computer in cui non è installata una versione precedente di MSDE, è possibile che il file Msxml2.dll non sia stato installato. Per ulteriori informazioni, vedere l'articolo 823490 della Microsoft Knowledge Base. Se si dispone di un'altra versione di SQL Server, è possibile che il file sia stato rimosso dalla disinstallazione di un programma, che sia stato eliminato manualmente o che ne sia stata annullata la registrazione.

Soluzioni

Cercare il file Msxml2.dll nel computer SQL Server. Se il file non viene individuato, scaricare e installare Msxml2.msi dall'articolo 823490 della Microsoft Knowledge Base. Se il file esiste, verificare che sia registrato correttamente.

Element properties:

TargetMicrosoft.SQLServer.2008.DBEngine
CategoryEventCollection
EnabledTrue
Event_ID6608
Event Source$Target/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ServiceName$
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
RemotableTrue
Alert Message
XML: impossibile creare un'istanza della classe. Verificare che il file Msxml2.dll sia presente nell'installazione di SQL Server
{0}
Event LogApplication
CommentMom2008ID='{4C0A552D-FD2B-4E11-AE2F-4C02A27CDFE5}';MOM2008GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74}

Member Modules:

ID Module Type TypeId RunAs 
_F6DA1507_12AF_11D3_AB21_00A0C98620CE_ DataSource Microsoft.Windows.EventProvider Microsoft.SQLServer.SQLDefaultAccount
GenerateAlert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.SQLServer.2008.XML___Failed_to_instantiate_class._Make_sure_Msxml2.dll_exists_in_the_SQL_Server_installation_1_5_Rule" Target="SQL2008Core!Microsoft.SQLServer.2008.DBEngine" Enabled="true" ConfirmDelivery="true" Remotable="true" Comment="Mom2008ID='{4C0A552D-FD2B-4E11-AE2F-4C02A27CDFE5}';MOM2008GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74}">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="_F6DA1507_12AF_11D3_AB21_00A0C98620CE_" Comment="{F6DA1507-12AF-11D3-AB21-00A0C98620CE}" TypeID="Windows!Microsoft.Windows.EventProvider" RunAs="SQL!Microsoft.SQLServer.SQLDefaultAccount">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>$Target/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ServiceName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>6608</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SQLServer.2008.XML___Failed_to_instantiate_class._Make_sure_Msxml2.dll_exists_in_the_SQL_Server_installation_1_5_Rule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>