Wednesday, November 27, 2013

SQL Server 2008 R2 Installation Error: The MOF compiler could not connect with the WMI server

SQL Server 2008 R2 Installation Error: The MOF compiler could not connect with the WMI server

The following error has occurred while Installing SQL Server 2008 R2
2013-11-27 02:08:11 Slp: Error: Action "Microsoft.SqlServer.Configuration.MsiExtension.SetFeatureInstallStateAction" threw an exception during execution.
2013-11-27 02:08:11 Slp: Microsoft.SqlServer.Setup.Chainer.Workflow.ActionExecutionException: MsiGetProductInfo failed to retrieve ProductVersion for package with Product Code = '{A2122A9C-A699-4365-ADF8-68FEAC125D61}'. Error code: 1608. ---> System.InvalidOperationException: MsiGetProductInfo failed to retrieve ProductVersion for package with Product Code = '{A2122A9C-A699-4365-ADF8-68FEAC125D61}'. Error code: 1608.
2013-11-27 02:08:11 Slp:    at Microsoft.SqlServer.Configuration.MsiExtension.SetFeatureInstallStateAction.FillInstallPropertyByProductCode(PackageInstallProperty pkg, String prodCode)
2013-11-27 02:08:11 Slp:    at Microsoft.SqlServer.Configuration.MsiExtension.SetFeatureInstallStateAction.FillInstallProperty(PackageInstallProperty pkg)
2013-11-27 02:08:11 Slp:    at Microsoft.SqlServer.Configuration.MsiExtension.SetFeatureInstallStateAction.ExecuteAction(String actionId)
2013-11-27 02:08:11 Slp:    at Microsoft.SqlServer.Chainer.Infrastructure.Action.Execute(String actionId, TextWriter errorStream)
2013-11-27 02:08:11 Slp:    at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(TextWriter statusStream, ISequencedAction actionToRun)
2013-11-27 02:08:11 Slp:    --- End of inner exception stack trace ---

The MOF compiler could not connect with the WMI server. This is either because of a semantic error such as an incompatibility with the existing WMI repository or an actual error such as the failure of the WMI server to start.


Workaround / Solution
If this error occurred while installing SQL Server 2008 R2, try below steps.

Step 1: Open command prompt with administrator privileges.
Step 2: Run below command to stop the WMI services.
net stop winmgmt
Step 3: Rename folder windows\System32\Wbem\Repository to other one, for backup purposes, for Instance OLD_Repository.
Step 4: Run below command to start the WMI services.
net start winmgmt

0 comments:

Post a Comment