Answered by:
Failed to register Sharepoint services System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

Question
-
Hi,
I am trying to install Sharepoint 2010 on a server (joining to a farm and not hosting central admin) but the install fails (I believe at stage 6) with this error:
05/06/2012 21:09:37 8 ERR Task service registration failed, so stopping execution of the engine
05/06/2012 21:09:37 8 INF Entering function StringResourceManager.GetResourceString
05/06/2012 21:09:37 8 INF Resource id to be retrieved is ServicesTaskFailConfigDisplayLabel for language English (United States)
05/06/2012 21:09:37 8 INF Resource retrieved id ServicesTaskFailConfigDisplayLabel is Failed to register SharePoint services.
05/06/2012 21:09:37 8 INF Leaving function StringResourceManager.GetResourceString
05/06/2012 21:09:37 8 ERR Failed to register SharePoint services.
An exception of type System.Reflection.TargetInvocationException was thrown. Additional exception information: Exception has been thrown by the target of an invocation.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: The directory name you entered is invalid. Please enter a new name.
at Microsoft.SharePoint.Administration.SPDiagnosticsService.set_LogLocation(String value)
at Microsoft.SharePoint.Administration.SPDiagnosticsService.InitSPDiagnosticsServiceFromRegistry(SPDiagnosticsService service)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.SharePoint.PostSetupConfiguration.ReflectionHelper.InvokeConstructor(String assemblyQualifiedName, Type[] constructorSignature, Object[] constructorParameters)
at Microsoft.SharePoint.PostSetupConfiguration.TaskCommon.ReflectionHelperInvokeConstructor(String assemblyQualifiedName, Type[] constructorSignature, Object[] constructorParameters, TaskBase task)
at Microsoft.SharePoint.PostSetupConfiguration.ServicesTask.InvokeServiceConstructor(String serviceRegistryKeyName, String solutionIdRegistryName, String serviceNameRegistryName, Type[] constructorSignature, Object[] constructorParameters)
at Microsoft.SharePoint.PostSetupConfiguration.ServicesTask.InstallServiceInConfigDB(Boolean provisionTheServiceToo, String serviceRegistryKeyName)
at Microsoft.SharePoint.PostSetupConfiguration.ServicesTask.InstallServices(Boolean provisionTheServicesToo)
at Microsoft.SharePoint.PostSetupConfiguration.ServicesTask.Run()
at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()From the logs.
Any idea what is wrong?
I am going to patch Windows and try again, but no idea what the problem is. It says directory name not valid, but what directory name?
Sunday, May 6, 2012 8:16 PM
Answers
-
Hi,
If SharePoint Logs stored for example in D: hardisk make sure the new server has the same hardisk name
Regards,
Fadi Abdulwahab, SharePoint Consultant
http://blogs.msdn.com/b/fabdulwahab
http://sqlgoogler.blogspot.com/
- Edited by Fadi Abdulwahab Sunday, May 6, 2012 8:24 PM
- Proposed as answer by Bjoern H Rapp Sunday, May 6, 2012 10:14 PM
- Marked as answer by Rock Wang– MSFT Friday, May 18, 2012 9:32 AM
Sunday, May 6, 2012 8:23 PM -
You can check where SharePoint logs stored from here Central Administration >> Monitoring >> Configure diagnostic logging
http://artykul8.com/2011/07/moving-sharepoint-2010-log-and-index-locations/
Regards,
Fadi Abdulwahab, SharePoint Consultant
http://blogs.msdn.com/b/fabdulwahab
http://sqlgoogler.blogspot.com/- Marked as answer by Rock Wang– MSFT Friday, May 18, 2012 9:32 AM
Monday, May 7, 2012 5:09 AM
All replies
-
Hi,
If SharePoint Logs stored for example in D: hardisk make sure the new server has the same hardisk name
Regards,
Fadi Abdulwahab, SharePoint Consultant
http://blogs.msdn.com/b/fabdulwahab
http://sqlgoogler.blogspot.com/
- Edited by Fadi Abdulwahab Sunday, May 6, 2012 8:24 PM
- Proposed as answer by Bjoern H Rapp Sunday, May 6, 2012 10:14 PM
- Marked as answer by Rock Wang– MSFT Friday, May 18, 2012 9:32 AM
Sunday, May 6, 2012 8:23 PM -
The logs are being written to on the C:\ drive though?
My server hosting central admin writes logs to a different drive though.
Sunday, May 6, 2012 11:27 PM -
You can check where SharePoint logs stored from here Central Administration >> Monitoring >> Configure diagnostic logging
http://artykul8.com/2011/07/moving-sharepoint-2010-log-and-index-locations/
Regards,
Fadi Abdulwahab, SharePoint Consultant
http://blogs.msdn.com/b/fabdulwahab
http://sqlgoogler.blogspot.com/- Marked as answer by Rock Wang– MSFT Friday, May 18, 2012 9:32 AM
Monday, May 7, 2012 5:09 AM