by Mark Shiffer
26. September 2007 23:38
Today I was attempting to install version 3 of the .NET framework on a Windows XP SP2 machine. I had a heck of a time trying to get this to install. I thought I would run through my steps in case anyone else (or myself later on) could find it useful (all of the failed logs are attached):
-
Attempted to install framework via .NET 3 download from Microsoft
-
The install logged 3 files: VSSWMSIFailInfo.txt (not helpful), VSSWMSIInstallTime.txt (not helpful), VSSWMSISummayr.txt
-
In the summary file I noticed that it said "Windows Communication Foundation -- Installation failed"
-
I happened to find reference in some forums to wcf installation logs being stored in C:\Documents and Settings\[User]\Local Settings\Temp\dd_wcf_retMSI34B1.txt
-
So that told me that the installation of WCF was failing, but all it was giving was a general 1603 error.
-
-
Next I looked at the event log to see what was there. A long list of warnings accompanied by an error were happening during the install:
-
System.InvalidCastException: Specified cast is not valid.
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at System.Management.ManagementScope.InitializeGuts(Object o)
at System.Management.ManagementScope.Initialize()
at System.Management.ManagementScope.Connect()
at System.ServiceModel.Install.WmiInstallComponent.get_IsInstalled()
at System.ServiceModel.Install.WmiInstallComponent.ApplyNamespaceDacl(OutputLevel outputLevel)
at System.ServiceModel.Install.WmiInstallComponent.OnInstall(OutputLevel outputLevel)
at System.ServiceModel.Install.WmiInstallComponent.Reinstall(OutputLevel outputLevel)
at Microsoft.Tools.ServiceModel.ServiceModelReg.PerformAction(ActionItem actionItem, Nullable`1 confirmUninstall)
at Microsoft.Tools.ServiceModel.ServiceModelReg.Run(String[] args)
at Microsoft.Tools.ServiceModel.ServiceModelReg.TryRun(String[] args)
-
Failure executing "C:\WINNT\system32\wbem\mofcomp.exe" with parameters ""C:\WINNT\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModel.mof"": System.ApplicationException: Unexpected result 3 executing C:\WINNT\system32\wbem\mofcomp.exe with "C:\WINNT\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModel.mof"
at System.ServiceModel.Install.InstallHelper.ExecuteWait(String program, String parameters, Int32[] allowedExitCodes)
at System.ServiceModel.Install.WmiInstallComponent.OnInstall(OutputLevel outputLevel)
-
A TransportConfiguration node does not exists in the system.web section for protocol msmq.formatname in C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Config\web.config.
-
A Protocol node does not exists in the system.web section for protocol msmq.formatname in C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Config\web.config.
-
HttpModules node ServiceModel does not exist in System.Web section group.
-
HttpHandlers node *.svc does not exist in System.Web section group
-
All compilation assembly nodes do not exist in System.Web section group.
-
A configuration entry for BuildProvider System.ServiceModel.Activation.ServiceBuildProvider, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 does not exist.
-
Configuration section system.serviceModel.activation does not exist in C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Config\machine.config.
-
Configuration section system.runtime.serialization does not exist in C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Config\machine.config.
-
Configuration section system.serviceModel does not exist in C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Config\machine.config.
-
-
This gave me a list of errors:
-
Missing: C:\WINNT\System32\WBEM\wbemsvc.dll
-
WMI MONIKER CONNECTION errors occured for the following namespaces: Root, 0x1AE - Class doesn't support Automation.
-
WMI CONNECTION errors occured for the following namespaces: Root, 0x80004002 - No such interface supported.
-
I copied the wbemsvc.dll from another computer that was running fine, restarted the WMI service and reran the installation. This time it worked!
I have attached a zip file containing the diagnostic tool and all of my original log files for reference. I hope this helps others who are struggling with this.
FrameworkInstallErrors.zip (1.17 mb)