Dears,
Recently we are facing an issue in CRM where we are unable to open the documents from share point document location in CRM. So we went to share point and tried to validate the site but it is throwing the below error and validation is always showing as loading without any error.
we opened the crm application server and found the below error in the event viewer. Please don the needful.
4ccdfc66-92f8-e711-80d7-005056ac0707
22d2846a-8d2e-4e39-a042-c29d5759bbe8
sharepointdocument
30
ValidateUrl
Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
Microsoft.Crm.Extensibility.InternalOperationPlugin
Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values) at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider) at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context) at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context) Inner Exception: System.ComponentModel.Win32Exception: The configuration registry key is invalid at System.Diagnostics.PerformanceCounterLib.RegisterFiles(String arg0, Boolean unregister) at System.Diagnostics.PerformanceCounterLib.UnregisterCategory(String categoryName) at System.Diagnostics.PerformanceCounterCategory.Delete(String categoryName) at Microsoft.Crm.CrmPerformanceCounterFactory.DeletePerformanceCounterCategory(String CategoryName) at Microsoft.Crm.CrmPerformanceCounterFactory.RegisterCounters(String component, CounterCreationDataCollection singleInstanceCounters, CounterCreationDataCollection multiInstanceCounters) at Microsoft.Crm.CrmPerformanceCounterFactory.LoadCounters(CounterContainer counterContainer, PerformanceCounterLoadSetting settings, String component) at Microsoft.Crm.CrmPerformanceCounterFactory.LoadCounters(PerformanceCounterLoadSetting settings, String component) at Microsoft.Crm.ObjectModel.SharePointPerformanceCounters.Initialize() at Microsoft.Crm.ObjectModel.SharePointPerformanceCounters.Decrement(String perfCounterName) at Microsoft.Crm.ObjectModel.SharePointManagedApiWrapper.ValidateSharePointFolder(String[] folderUrls, String[] siteUrls) at Microsoft.Crm.ObjectModel.SharePointDataProcessor.ValidateSharePointFolder(String[] folderUrls, List`1 locationId, Int32 parentType, ExecutionContext context) at Microsoft.Crm.ObjectModel.SharePointDocumentService.ValidateUrl(String sharePointUrlsXml, ExecutionContext context)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider)
at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
Inner Exception: System.ComponentModel.Win32Exception: The configuration registry key is invalid
at System.Diagnostics.PerformanceCounterLib.RegisterFiles(String arg0, Boolean unregister)
at System.Diagnostics.PerformanceCounterLib.UnregisterCategory(String categoryName)
at System.Diagnostics.PerformanceCounterCategory.Delete(String categoryName)
at Microsoft.Crm.CrmPerformanceCounterFactory.DeletePerformanceCounterCategory(String CategoryName)
at Microsoft.Crm.CrmPerformanceCounterFactory.RegisterCounters(String component, CounterCreationDataCollection singleInstanceCounters, CounterCreationDataCollection multiInstanceCounters)
at Microsoft.Crm.CrmPerformanceCounterFactory.LoadCounters(CounterContainer counterContainer, PerformanceCounterLoadSetting settings, String component)
at Microsoft.Crm.CrmPerformanceCounterFactory.LoadCounters(PerformanceCounterLoadSetting settings, String component)
at Microsoft.Crm.ObjectModel.SharePointPerformanceCounters.Initialize()
at Microsoft.Crm.ObjectModel.SharePointPerformanceCounters.Decrement(String perfCounterName)
at Microsoft.Crm.ObjectModel.SharePointManagedApiWrapper.ValidateSharePointFolder(String[] folderUrls, String[] siteUrls)
at Microsoft.Crm.ObjectModel.SharePointDataProcessor.ValidateSharePointFolder(String[] folderUrls, List`1 locationId, Int32 parentType, ExecutionContext context)
at Microsoft.Crm.ObjectModel.SharePointDocumentService.ValidateUrl(String sharePointUrlsXml, ExecutionContext context)
.