Export (0) Print
Expand All

Troubleshooting Setup Issues

This topic describes how to troubleshoot Windows Communication Foundation (WCF) set up issues.

If you delete any of the following registry keys:

  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ServiceModelService 3.0.0.0

  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ServiceModelOperation 3.0.0.0

  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ServiceModelEndpoint 3.0.0.0

  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SMSvcHost 3.0.0.0

  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSDTC Bridge 3.0.0.0

The keys are not re-created if you run repair by using the .NET Framework 3.0 installer launched from the Add/Remove Programs applet in Control Panel. To recreate these keys correctly, the user must uninstall and reinstall the .NET Framework 3.0.

WMI Service Corruption may block the installation of the Windows Communication Foundation WMI provider. During installation the Windows Communication Foundation installer is unable to register the WCF .mof file using the mofcomp.exe component. The following is a list of symptoms:

  1. .NET Framework 3.0 installation completes successfully, but the WCF WMI provider is not registered.

  2. An error event appears in the application event log that references problems registering the WMI provider for WCF, or running mofcomp.exe.

  3. The setup log file named dd_wcf_retCA* in the user's %temp% directory contains references to failure to register the WCF WMI provider.

  4. An exception such as one the following may be listed in the event log or setup trace log file:

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

    or:

    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.

    or:

    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

The following steps must be followed to resolve the problem described previously.

  1. Run the WMI Diagnosis Utility, version 2.0 to repair the WMI service. For more information about using this tool, see the WMI Diagnosis Utility topic.

Repair the .NET Framework 3.0 installation by using the Add/Remove Programs applet located in Control Panel, or uninstall/reinstall the .NET Framework 3.0.

If you do a repair of .NET Framework 3.0 after you installed .NET Framework 3.5, configuration elements introduced by .NET Framework 3.5 in machine.config are removed. However, the web.config remains intact. The workaround is to repair .NET Framework 3.5 after this via ARP, or use the WorkFlow Service Registration Tool (WFServicesReg.exe) with the /c switch.

WorkFlow Service Registration Tool (WFServicesReg.exe) can be found at %windir%\Microsoft.NET\framework\v3.5\ or %windir%\Microsoft.NET\framework64\v3.5\

When .NET Framework 3.5 installation fails to configure additional WCF-related IIS configuration settings, it logs an error in the installation log and continues. Any attempt to run WorkflowServices applications will fail, since the required configuration settings are missing. For example, loading xoml or rules service can fail.

To workaround this problem, use the WorkFlow Service Registration Tool (WFServicesReg.exe) with the /c switch to properly configure IIS script maps on the machine. WorkFlow Service Registration Tool (WFServicesReg.exe) can be found at %windir%\Microsoft.NET\framework\v3.5\ or %windir%\Microsoft.NET\framework64\v3.5\

This error occurs if .NET Framework 4 is installed and then .NET Framework 3.5 WCF HTTP Activation is enabled. To resolve the issue run the following command-line from inside the Visual Studio 2010 Command Prompt:

aspnet_regiis.exe -i -enable
Show:
© 2014 Microsoft