Microsoft KB Archive/926640

= The Windows Communication Foundation WMI provider is not registered when you install the .NET Framework 3.0 on a Windows Server 2003-based computer =

Article ID: 926640

Article Last Modified on 11/30/2006

-

APPLIES TO


 * Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Web Edition

-



SYMPTOMS
When you install the Microsoft .NET Framework 3.0 on a Microsoft Windows Server 2003-based computer, you experience the following problems:  The .NET Framework 3.0 is installed successfully. However, the Windows Communication Foundation (WCF) Windows Management Instrumentation (WMI) provider is not registered. An event is logged in the Application log about the failure to register the WCF WMI provider or about the failure to run the Mofcomp.exe file. The %windir%\Temp\dd_wcf_retCA* setup trace log file contains entries about the failure to register the WCF WMI provider.

Note %windir% represents the path of the Windows system folder. Typically, C:\Windows is the path of the Windows system folder. You receive one of the following exception errors in the Application log or in the setup trace log file:

Error message 1

ServiceModelReg [11:09:59:046]: System.ApplicationException: Unexpected result 3 executing E:\WINDOWS\system32\wbem\mofcomp.exe with &quot;E:\WINDOWS\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModel.mof&quot;

Error message 2

ServiceModelReg [07:19:33:843]: System.TypeInitializationException: The type initializer for 'System.Management.ManagementPath' threw an exception. ---> System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {CF4CC405-E2C5-4DDD-B3CE-5E7582D8C9FA} failed due to the following error: 80040154.

Error message 3

ServiceModelReg [07:19:32:750]: System.IO.FileNotFoundException: Could not load file or assembly 'C:\WINDOWS\system32\wbem\mofcomp.exe' or one of its dependencies. The system cannot find the file specified. File name: 'C:\WINDOWS\system32\wbem\mofcomp.exe





CAUSE
This problem may occur if the WMI service is corrupted. Therefore, the WCF installer cannot use the Mofcomp.exe file to register the WCF .mof file.



RESOLUTION
To resolve this problem, follow these steps:  Run the WMI Diagnosis utility to diagnose and to repair problems with the WMI service.

To download the WMI Diagnosis utility, visit the following Microsoft Web site:

http://www.microsoft.com/downloads/details.aspx?familyid=D7BA3CD6-18D1-4D05-B11E-4C64192AE97D&displaylang=en

For more information about the WMI Diagnosis utility, visit the following Microsoft Web site:

http://www.microsoft.com/technet/scriptcenter/topics/help/wmidiag.mspx

 Use Add or Remove Programs to repair the .NET Framework 3.0 installation, or remove and then reinstall the .NET Framework 3.0.

To repair the .NET Framework 3.0 installation, follow these steps: <ol style="list-style-type: lower-alpha;"> Click Start, click Run, type appwiz.cpl, and then click OK.</li> In the Currently installed programs list, click Microsoft .NET Framework 3.0, and then click Change/Remove.</li> Click Repair, and then click Next.</li> Follow the instructions to repair the .NET Framework 3.0 installation.</li></ol>

To remove and then reinstall the .NET Framework 3.0, follow these steps: <ol style="list-style-type: lower-alpha;"> Click Start, click Run, type appwiz.cpl, and then click OK.</li> In the Currently installed programs list, click Microsoft .NET Framework 3.0, and then click Change/Remove.</li> Click Uninstall, and then click Next.</li> Follow the instructions to remove the .NET Framework 3.0 program.</li> Reinstall the .NET Framework 3.0.</li></ol> </li></ol>

Keywords: kbprb kbwinservperf kbmgmtservices kbexpertiseadvanced kbtshoot KB926640

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.