locked
Dynamic CRM 4.0 Custom Workflow System.IO.FileNotFoundException: Could not load file or assembly Error RRS feed

  • Question

  • Hi,

    Whenever I try to run the workflow I recieve the below error in the Database AsyncOperationBase Table. My environment is as below, 

    64-Bit, Windows Server 2008 R2 Machine

    Any CPU - Platform Plugin Registration Tool 2.2

    Any CPU - Platform Custom Workflow Activity (Developed in .Net 3.5)

    With .PDB files copied in my <CRM>\Server\bin\assembly

    Workflow paused due to error: Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'BusinessObjects, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1c52993beec20758' or one of its dependencies. The system cannot find the file specified.     at WW.Workflow.CreateProduct.Execute(ActivityExecutionContext executionContext)     at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)     at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext)     at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)     at System.Workflow.Runtime.Scheduler.Run()

    I'm clueless after running the same so many times and the Debugger too doesnot get called although AsyncService is Attached to the Process.

    Regards

    Manoj Dwivedi

    Wednesday, February 22, 2012 10:52 AM

Answers

  • It looks like you've a workflow assembly that references another (dependent) assembly. It should be possible to make this work in one of 2 ways:

    1. Register the workflow assembly on Disk, and place it, and all dependent assemblies in <CRM>\Server\bin\assembly
    2. Register the workflow assembly in any of Disk, Database or GAC, and place all dependent assemblies in the GAC. If you do this, you may need to restart the Async Service

    If either of these options don't work, try using the Assembly Log Viewer to get more information


    Microsoft CRM MVP - http://mscrmuk.blogspot.com  http://www.excitation.co.uk


    Wednesday, February 22, 2012 11:16 AM
    Moderator

All replies

  • It looks like you've a workflow assembly that references another (dependent) assembly. It should be possible to make this work in one of 2 ways:

    1. Register the workflow assembly on Disk, and place it, and all dependent assemblies in <CRM>\Server\bin\assembly
    2. Register the workflow assembly in any of Disk, Database or GAC, and place all dependent assemblies in the GAC. If you do this, you may need to restart the Async Service

    If either of these options don't work, try using the Assembly Log Viewer to get more information


    Microsoft CRM MVP - http://mscrmuk.blogspot.com  http://www.excitation.co.uk


    Wednesday, February 22, 2012 11:16 AM
    Moderator
  • Thanks a ton, It has worked the Second option to be precise.

    Can you suggest free litreature on CRM to me, I'm looking forward for that from a Newbies prespective.

    Regards

    Manoj Dwivedi

    Wednesday, February 22, 2012 11:42 AM