SharePoint 2010 configuration wizard TypeLoadException


If you are installing SharePoint 2010 rejoice only after the configuration wizard is through with its process. I recently ran into an issue on Step 5: Configuring SharePoint services. The configuration wizard failed with an InvalidOperationException with the following entry in the eventlog

Log Name: Application Source: SharePoint 2010 Products Configuration Wizard Date: 5/18/2010 10:20:15 AM Event ID: 104 Task Category: None Level: Error Keywords: Classic User: N/A Computer: MARA.dev.credera.local Description: Failed to register SharePoint services. An exception of type System.InvalidOperationException was thrown. Additional exception information: Failed to load or format string Id ManagementUI_ExcelCalculationService_FriendlyName for culture en-US: System.TypeInitializationException: The type initializer for ‘Microsoft.Office.Excel.Server.Host.ExcelServerHost’ threw an exception. —> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.TypeLoadException: Could not load type ‘Microsoft.Office.Excel.Server.Extensions.IHostExtension’ from assembly ‘Microsoft.Office.Excel.Server.MossHost, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’. at System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase) at System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at Microsoft.Office.Excel.Server.MossHost.MossHost.CreateHostExtension(String className, IHostExtension& extension) at Microsoft.Office.Excel.Server.MossHost.MossHost.LoadHostExtensions() — End of inner exception stack trace — at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at Microsoft.Office.Excel.Server.Host.ExcelServerHost.CreateHost(String assemblyName, String className) at Microsoft.Office.Excel.Server.Host.ExcelServerHost.CreateHost() at Microsoft.Office.Excel.Server.Host.ExcelServerHost..cctor() — End of inner exception stack trace — at Microsoft.Office.Excel.Server.Host.ExcelServerHost.get_Host() at Microsoft.Office.Excel.Server.StringManager.get_BrandStrings() at Microsoft.Office.Excel.Server.StringManager.GetString(StringId id, EncodingType encodingType, Boolean syncCultures, Object[] args) System.InvalidOperationException: Failed to load or format string Id ManagementUI_ExcelCalculationService_FriendlyName for culture en-US: System.TypeInitializationException: The type initializer for ‘Microsoft.Office.Excel.Server.Host.ExcelServerHost’ threw an exception. —> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.TypeLoadException: Could not load type ‘Microsoft.Office.Excel.Server.Extensions.IHostExtension’ from assembly ‘Microsoft.Office.Excel.Server.MossHost, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c’. at System.Reflection.Assembly._GetType(String name, Boolean throwOnError, Boolean ignoreCase) at System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder

If you encounter this issue or a similar issue with the configuration wizard, try deleting the registry keys for the service and re-run the configuration. The keys to delete are under HKLM\SOFTWARE\MICROSOFT\Shared Tools\Web Server Extensions\14.0\WSS\Services Delete the key for the service causing the error and re-run the configuration. After the delete the coniguration wizard ran successfully to completion

WARNING: Please see the comments. There are some issues with this fix. your mileage may vary

Advertisements
%d bloggers like this: