Hi, We are seeing the following error in the event viewer:
"could not load file or assembly 'microsoft.dynamics.enterpriselibrary.caching, culture=neutral, publickeytoken=31bf3856ad364e35' or one of its dependencies. the system cannot find the file specified"
We use Sharepoint Server 2010, Microsoft Dynamics GP2010+SP3 on Windows Server 2008 R2 and SQL Server 2008 R2, Workflow for Microsoft Dynamics GP2010, Web Services and e-Connect.
This is the complete error messaje:
The description for Event ID 0 from source Microsoft.Dynamics.Workflow cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
Action:
RaiseEvent
Current User LogOnName:
CRB\UserName
Input parameters:
<RequestObjects>
<WorkflowEvent>WorkflowError</WorkflowEvent>
<WorkflowErrorEventArgs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<DynamicsActivationArgs>
<DynamicsWorkflowId>d7c4ea8b-e20d-4d0f-a652-de126154f333</DynamicsWorkflowId>
<BusinessObjectType>Payables Batch</BusinessObjectType>
<SPWorkflowAssociationId>90b64a15-e356-4330-9bcf-f0a2f6f4c263</SPWorkflowAssociationId>
<BusinessObjectSubmissionInformation>
<WorkflowName>Dynamics GP Payables Batch Approval Workflow</WorkflowName>
<OriginalDueDays xsi:nil="true" />
<DueDays xsi:nil="true" />
<Comment />
<BusinessObjectKey>
<KeyParts>
<KeyPart xsi:type="KeyPartOfString">
<Name>BACHNUMB</Name>
<PartValue>OAY29122012-02</PartValue>
</KeyPart>
<KeyPart xsi:type="KeyPartOfString">
<Name>BCHSOURC</Name>
<PartValue>PM_Payment</PartValue>
</KeyPart>
<KeyPart xsi:type="KeyPartOfDateTime">
<Name>CREATEDDATE</Name>
<PartValue>2012-12-29T13:33:40</PartValue>
</KeyPart>
</KeyParts>
</BusinessObjectKey>
</BusinessObjectSubmissionInformation>
<User>CRB\UserName</User>
</DynamicsActivationArgs>
<DynamicsWorkflowKey>
<Id>d7c4ea8b-e20d-4d0f-a652-de126154f333</Id>
</DynamicsWorkflowKey>
<WorkflowInstanceId>26cf2b35-1d56-4536-8b5d-ab0068143b9a</WorkflowInstanceId>
<ExceptionMessages>
<string>an error occurred creating the configuration section handler for cachingconfiguration: could not load file or assembly 'microsoft.dynamics.enterpriselibrary.caching, culture=neutral, publickeytoken=31bf3856ad364e35' or one of its dependencies. the system cannot find the file specified. (c:\program files\common files\microsoft shared\web server extensions\14\bin\owstimer.exe.config line 2)</string>
<string>could not load file or assembly 'microsoft.dynamics.enterpriselibrary.caching, culture=neutral, publickeytoken=31bf3856ad364e35' or one of its dependencies. the system cannot find the file specified.</string>
</ExceptionMessages>
</WorkflowErrorEventArgs></RequestObjects>
Exception type:
System.Configuration.ConfigurationErrorsException
Exception message:
An error occurred creating the configuration section handler for cachingConfiguration: Could not load file or assembly 'Microsoft.Dynamics.EnterpriseLibrary.Caching, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN\OWSTIMER.EXE.Config line 2)
Stack Trace:
at System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey, Boolean& isRootDeclaredHere)
at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
at System.Configuration.ConfigurationManager.GetSection(String sectionName)
at Microsoft.Dynamics.EnterpriseLibrary.Common.Configuration.SystemConfigurationSourceImplementation.GetSection(String sectionName)
at Microsoft.Dynamics.EnterpriseLibrary.Caching.CachingConfigurationView.GetCacheManagerData(String cacheManagerName)
at Microsoft.Dynamics.EnterpriseLibrary.Caching.CacheManagerCustomFactory.CreateObject(IBuilderContext context, String name, IConfigurationSource configurationSource, ConfigurationReflectionCache reflectionCache)
at Microsoft.Dynamics.EnterpriseLibrary.Common.Configuration.ObjectBuilder.ConfiguredObjectStrategy.BuildUp(IBuilderContext context, Type t, Object existing, String id)
at Microsoft.Dynamics.EnterpriseLibrary.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)
at Microsoft.Dynamics.EnterpriseLibrary.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)
at Microsoft.Dynamics.EnterpriseLibrary.Common.Configuration.ObjectBuilder.ConfigurationNameMappingStrategy.BuildUp(IBuilderContext context, Type t, Object existing, String id)
at Microsoft.Dynamics.EnterpriseLibrary.ObjectBuilder.BuilderBase`1.DoBuildUp(IReadWriteLocator locator, Type typeToBuild, String idToBuild, Object existing, PolicyList[] transientPolicies)
at Microsoft.Dynamics.EnterpriseLibrary.ObjectBuilder.BuilderBase`1.BuildUp(IReadWriteLocator locator, Type typeToBuild, String idToBuild, Object existing, PolicyList[] transientPolicies)
at Microsoft.Dynamics.EnterpriseLibrary.ObjectBuilder.BuilderBase`1.BuildUp[TTypeToBuild](IReadWriteLocator locator, String idToBuild, Object existing, PolicyList[] transientPolicies)
at Microsoft.Dynamics.EnterpriseLibrary.Common.Configuration.ObjectBuilder.EnterpriseLibraryFactory.BuildUp[T](IReadWriteLocator locator, String id, IConfigurationSource configurationSource)
at Microsoft.Dynamics.EnterpriseLibrary.Common.Configuration.ObjectBuilder.LocatorNameTypeFactoryBase`1.Create(String name)
at Microsoft.Dynamics.EnterpriseLibrary.Caching.CacheFactory.GetCacheManager(String cacheManagerName)
at Microsoft.Dynamics.Workflow.SPFieldCache.<get_CacheManager>b__0()
at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
at Microsoft.Dynamics.Workflow.SPFieldCache.get_CacheManager()
at Microsoft.Dynamics.Workflow.SPFieldCache.GetField(String columnName)
at Microsoft.Dynamics.Workflow.DynamicsDataStoreManager`2.GetSPField(SPWeb web, String columnName)
at Microsoft.Dynamics.Workflow.DynamicsDataStoreManager`2.<>c__DisplayClassc.<AddDataStorePropertyToCache>b__b()
at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
at Microsoft.Dynamics.Workflow.DynamicsDataStoreManager`2.AddDataStorePropertyToCache(List`1 properties, PropertyInfo member)
at Microsoft.Dynamics.Workflow.DynamicsDataStoreManager`2.get_ListProperties()
at Microsoft.Dynamics.Workflow.DynamicsDataStoreManager`2.RetrieveFromDataStore(K key)
at Microsoft.Dynamics.Workflow.DynamicsDataStoreManager`2.FindByKey(K key)
at Microsoft.Dynamics.Workflow.DynamicsWorkflowKey.GetDynamicsWorkflow()
at Microsoft.Dynamics.Workflow.WorkflowEventManager.RaiseEvent(Object source, WorkflowEvent eventType, WorkflowEventArgs args)
Exception type:
System.IO.FileNotFoundException
Exception message:
Could not load file or assembly 'Microsoft.Dynamics.EnterpriseLibrary.Caching, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Stack Trace:
at System.Configuration.TypeUtil.GetTypeWithReflectionPermission(IInternalConfigHost host, String typeString, Boolean throwOnError)
at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.Init(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.InitWithRestrictedPermissions(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
at System.Configuration.RuntimeConfigurationRecord.CreateSectionFactory(FactoryRecord factoryRecord)
at System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey, Boolean& isRootDeclaredHere)
the message resource is present but the message is not found in the string/message table
If you have any ideas to resolve this error. Thanks