Could not load file or assembly Nintex.Workflow.Resources.resources or one of its dependencies


Badge +4

I have been trying to figure out a issue with State machine workflow. While reviewing ULS logs I found that it is throwing following specific error,

Load Workflow Assembly: System.IO.FileNotFoundException: Could not load file or assembly 'Nintex.Workflow.Resources.resources, Version=1.0.0.0, Culture=en-US, PublicKeyToken=913f6bae0ca5ae12' or one of its dependencies. The system cannot find the file specified.  File name: 'Nintex.Workflow.Resources.resources, Version=1.0.0.0, Culture=en-US, PublicKeyToken=913f6bae0ca5ae12'   

at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)   

It looks like it is trying to load this assembly but could not find it.

I am not really sure what could be the issue, any help would greatly appriciated.

Thanks,


10 replies

Userlevel 6
Badge +16

Is it a development server?

Try installing the last build

Badge +4

Its a Production server. On DEV everything works fine.

Is it something to do with the size of workflow ? but even if the size of workflow is 1.5 MB (as compare to 500 KB), it shouldnt be giving this error.

I am just spinning my head to figure out what is going on..

More Inputs :-

1) One of our state machine workflow is stuck while changing the state.

2) It happens every time  - whenever you try to create a new item.

3) It shows  below error :-

In
  RunWorkflowElev(), begin processing events for instance:
  42dafdf2-140f-48a0-9b0c-28d07d2e0f04
Workflow on association 'workflow Name' is about to be
  compiled
Workflow on association 'workflow name' has been compiled
Processing 1 events for workflow
  instance: 42dafdf2-140f-48a0-9b0c-28d07d2e0f04, processing id:
  8ee60515-1776-428c-a194-5aba8a9b78ab
Processing event  with id
  42dafdf2-140f-48a0-9b0c-28d07d2e0f04 for workflow instance:
  42dafdf2-140f-48a0-9b0c-28d07d2e0f04, processing id:
  8ee60515-1776-428c-a194-5aba8a9b78ab
Loaded instance data for instance:
  42dafdf2-140f-48a0-9b0c-28d07d2e0f04, data size: 368091, processing id:
  8ee60515-1776-428c-a194-5aba8a9b78ab
Load Workflow Assembly:
  System.IO.FileNotFoundException: Could not load file or assembly
  'Nintex.Workflow.Resources.resources, Version=1.0.0.0, Culture=en-US,
  PublicKeyToken=913f6bae0ca5ae12' or one of its dependencies. The system
  cannot find the file specified.  File
  name: 'Nintex.Workflow.Resources.resources, Version=1.0.0.0, Culture=en-US,
  PublicKeyToken=913f6bae0ca5ae12'     at
  System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String
  codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint,
  StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean
  throwOnFileNotFound, Boolean forIntrospection, Boolean
  suppressSecurityChecks)     at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)     at
  System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString,
  Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr
  pPrivHostBinder, Boolean forIntrospection)   
  at System.Reflection.RuntimeAssembly.InternalLoad(String
  assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark,
  Boolean forIntrospection)     at
  System.Reflection.Assembly.Load(String assemblyString)     at
  Microsoft.SharePoint.Workflow.SPWinOeHostServices.LoadWorkflowAssembly(SPWorkflowManager
  manager, String name)    WRN: Assembly
  binding logging is turned OFF.  To
  enable assembly bind failure logging, set the registry value
  [HKLMSoftwareMicrosoftFusion!EnableLog] (DWORD) to 1.  Note: There is some performance penalty
  associated with assembly bind failure logging.  To turn this feature off, remove the
  registry value [HKLMSoftwareMicrosoftFusion!EnableLog].
Engine RunWorkflow:
  System.Reflection.TargetInvocationException: Exception has been thrown by the
  target of an invocation. ---> System.IO.FileNotFoundException: Could not
  load file or assembly 'Nintex.Workflow.Resources.resources, Version=1.0.0.0,
  Culture=en-US, PublicKeyToken=913f6bae0ca5ae12' or one of its dependencies.
  The system cannot find the file specified. --->
  System.IO.FileNotFoundException: Could not load file or assembly
  'Nintex.Workflow.Resources.resources, Version=1.0.0.0, Culture=en-US,
  PublicKeyToken=913f6bae0ca5ae12' or one of its dependencies. The system
  cannot find the file specified.     at
  System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String
  codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint,
  StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean
  throwOnFileNotFound, Boolean forIntrospection, Boolean
  suppressSecurityChecks)     at
  System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName
  assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly,
  StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean
  throwOnFileNotFound, Boolean forIntrospection, Boolean
  suppressSecurityChecks)     at
  System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString,
  Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr
  pPrivHostBinder, Boolean forIntrospection)   
  at System.Reflection.RuntimeAssembly.InternalLoad(String
  assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark,
  Boolean forIntrospection)     at
  System.Reflection.Assembly.Load(String assemblyString)     at
  Microsoft.SharePoint.Workflow.SPWinOeHostServices.LoadWorkflowAssembly(SPWorkflowManager
  manager, String name)     at Microsoft.SharePoint.Workflow.SPWinOePersistenceService.ResolveWorkflowAssembly(Object
  sender, ResolveEventArgs args)     at
  System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String
  assemblyFullName)     --- End of inner
  exception stack trace ---     at
  System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String
  codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint,
  StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean
  throwOnFileNotFound, Boolean forIntrospection, Boolean
  suppressSecurityChecks)     at
  System.Reflection.RuntimeAssembly.InternalGetSatelliteAssembly(String name,
  CultureInfo culture, Version version, Boolean throwOnFileNotFound,
  StackCrawlMark& stackMark)     at
  System.Resources.ManifestBasedResourceGroveler.GetSatelliteAssembly(CultureInfo
  lookForCulture, StackCrawlMark& stackMark)     at
  System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo
  culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean
  createIfNotExists, StackCrawlMark& stackMark)     at
  System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo
  requestedCulture, Boolean createIfNotExists, Boolean tryParents,
  StackCrawlMark& stackMark)     at
  System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture,
  Boolean createIfNotExists, Boolean tryParents)     at
  System.Resources.ResourceManager.GetString(String name, CultureInfo
  culture)     at
  Nintex.Workflow.Resources.NWResourceBase.GetString(String name, Int32
  culture)     at
  Nintex.Workflow.Activities.CallWebServiceActivity..ctor()     at
  Microsoft.SharePoint.Workflow.ROOT.InitializeComponent()     --- End of inner exception stack trace
  ---     at System.RuntimeTypeHandle.CreateInstance(RuntimeType
  type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached,
  RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)     at System.RuntimeType.CreateInstanceSlow(Boolean
  publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark&
  stackMark)     at
  System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean
  skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)     at System.Activator.CreateInstance(Type
  type, Boolean nonPublic)     at
  System.Activator.CreateInstance(Type type)   
  at
  System.Workflow.Runtime.Hosting.DefaultWorkflowLoaderService.CreateInstance(Type
  workflowType)     at
  System.Workflow.Runtime.WorkflowDefinitionDispenser.LoadRootActivity(Type
  workflowType, Boolean createDefinition, Boolean initForRuntime)     at
  System.Workflow.Runtime.WorkflowDefinitionDispenser.MruCache.GetOrGenerateDefinition(Type
  type, String xomlText, String rulesText, Byte[] md5Codes, Boolean
  initForRuntime, Boolean& exist)   
  at
  System.Workflow.Runtime.WorkflowDefinitionDispenser.GetRootActivity(Type
  workflowType, Boolean createNew, Boolean initForRuntime)     at
  System.Workflow.ComponentModel.Activity.OnResolveActivityDefinition(Type
  type, String workflowMarkup, String rulesMarkup, Boolean createNew, Boolean
  initForRuntime, IServiceProvider serviceProvider)     at
  System.Workflow.ComponentModel.Serialization.ActivitySurrogate.ActivitySerializedRef.System.Runtime.Serialization.IObjectReference.GetRealObject(StreamingContext
  context)     at
  System.Runtime.Serialization.ObjectManager.ResolveObjectReference(ObjectHolder
  holder)     at
  System.Runtime.Serialization.ObjectManager.DoFixups()     at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler
  handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain,
  IMethodCallMessage methodCallMessage)   
  at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream
  serializationStream, HeaderHandler handler, Boolean fCheck, Boolean
  isCrossAppDomain, IMethodCallMessage methodCallMessage)     at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream
  serializationStream)     at
  System.Workflow.ComponentModel.Activity.Load(Stream stream, Activity
  outerActivity, IFormatter formatter)   
  at
  System.Workflow.Runtime.Hosting.WorkflowPersistenceService.RestoreFromDefaultSerializedForm(Byte[]
  activityBytes, Activity outerActivity)   
  at Microsoft.SharePoint.Workflow.SPWinOePersistenceService.LoadWorkflowInstanceState(Guid
  instanceId)     at
  System.Workflow.Runtime.WorkflowRuntime.InitializeExecutor(Guid instanceId,
  CreationContext context, WorkflowExecutor executor, WorkflowInstance
  workflowInstance)     at
  System.Workflow.Runtime.WorkflowRuntime.Load(Guid key, CreationContext
  context, WorkflowInstance workflowInstance)     at System.Workflow.Runtime.WorkflowRuntime.GetWorkflow(Guid
  instanceId)     at
  Microsoft.SharePoint.Workflow.SPWinOeHostServices.Send(SPWorkflow workflow,
  SPWinOeWorkflow winoeworkflow, SPWorkflowEvent e)     at
  Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(SPWorkflowHostService
  host, SPWorkflow workflow, Collection`1 events, TimeSpan timeOut)
Closing WorkflowTelemetryMonitoredScope
Userlevel 6
Badge +16

Have you reinstalled it?

Badge +4

Does anyone know a solution for this? I have the exact same issue on a production server with Workflow Version 3.1.4.11 installed. Reinstalling is definitely NOT an option.

Badge +4

Use powershell to install the nintex solutions manually. This was worked for me when i had this problem.

Badge +4

That will not help, I'm quite sure. We have a lot of workflows running happily but some are running into error state with above mentioned error message. Of course this happens to different workflows and most of their instances are running fine.

Badge +1

Hi,

We are also having trouble with this error. We could not solve it, yet. It seems to be a temporarily bug.

Badge +4

Hi Andi,

apart from installing the new version of nintex we did following things to resolve this issue, Hope this helps

1) check your workflow size - should be up to 500 kb, if it is more than that then use smaller workflows and have a main workflow triggering smaller workflows through web service.

2) I have seen more and more issues with the state machine workflows and how they have been implemented. please create a simple workflow and see if that works without throwing this error message.

3) Check if it is a problem with only specific workflow or it is coming for all workflows.

Ganesh

Badge +4

Hi Ganesh,

thank you very much for pointing out possible solutions. Especially the hint with state machines seems quite valueable to me. We have many workflows with lots of instances running hust fine. It is just the occasional one instance here and one instance there which fails. And now that you mention it, it's always the ones with state machines that fail.

We also have really huge workflows and those are already  split according to what you mentioned. I.e. one workflow coordinating the others. No single workflow is bigger than 250k.

I'll look after an offline window and then install the latest version. Hopefully that'll make things better.

Cheers, Andi

Badge +3

Hi All, 

I too face the same issue on my State machine workflow. It's a sporadic issue and when i restart the workflow it will run without any issues. Please help.

Mine is also SharePoint 2013 prod server.

Reply