Exception in .NET 3.0 SDK WorkflowMonitor Sample

I get the following exception every time I run the WorkflowMonitor sample (it's never run successfully). Any ideas

exception = {"Could not load file or assembly 'Hosting, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.":"Hosting, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"}




Answer this question

Exception in .NET 3.0 SDK WorkflowMonitor Sample

  • Jubber

    Copying my workflow DLL into the WorkflowMonitor executable directory worked...

    ...but I'm not getting the correct layout for my state machine workflow ...some sort of ugly default layout.

    Any ideas



  • David J Oldfield

    I got this error when I didnt have the latest version of my workflow dll (and all required dependencies) in the runtime directory of the WorkflowMonitor. If you have already checked this, ensure that all your workflow types are serializable. Finally, if you have a local data service implemented for your workflow type, when you raise the event try passing "null" for the sender argument instead of "this". If your error persists, let me know and I'll try to suggest some more things to try.
  • Exception in .NET 3.0 SDK WorkflowMonitor Sample