While preparing earlier today for a client demo on Workflow 2.0, I encountered an error while trying to submit a batch for approval.
[Microsoft][SQL Server Native Client 11.0][SQL Server][A .NET Framework error occurred during execution of user-defined routine or aggregate "Get "GetAssignedUsers".
System.IO.FileLoadException: Could not load file or assembly 'System.DirectoryServices, Vers[
After clicking the OK button on the erro message the batch shows as automatically rejected.
I had a suspicion that this might be a result of the CLR Assemblies not having deployed correctly. Last time I saw this, it as when trying to select a manager for a Workflow Type while doing training.
Today while preparing, I had been able to select managers and users who would approve the workflow steps without any problems. I figured there was nothing to lose by giving a redploy of the assemblies another go:
exec wfDeployClrAssemblies
After running the command against the system database (typically called DYNAMICS, but called D16R1 in my demo environment), I was able to resubmit the batch for approval.
What should we write about next?
If there is a topic which fits the typical ones of this site, which you would like to see me write about, please use the form, below, to submit your idea.
3 thoughts on “Error Submitting Batch For Workflow 2.0 Approval”