Workflow Lite for SharePoint: "Value does not fall within the expected range" exception

A few people have reported some problems with the Workflow Lite for SharePoint RC1. When you're using the COPY action for example, the workflow engine reports the following exception in the event log:
Unable to instantiate event handler (assembly "Leadit.SharePoint.Workflow, Version=0.2.0.0, Culture=neutral, PublicKeyToken=3948f234bbbabe18", class "Leadit.SharePoint.Workflow.EventHandler"), or report event for "..." in "...". Could not execute the COPY action.(System.ArgumentException: Value does not fall within the expected range.

It turns out to be that it's not a bug, but a problem with the XML namespaces in the configuration file that was included in the setup package as an example. So everybody who's having that problem, check out my (corrected) previous post for an example config file. An updated version of the setup package will be uploaded tonight, I think RC1b is a nice name. :-) Anyway, I'm sorry for the inconvenience and I thank everyone for helping to solve the problem (especially Jessica J., who now owes me a beer!).

14 Comments

  • works great, Having a little trouble with the email.

  • please disregard. I needed to enable smtp mail relay

  • Now working, thanks.

  • Jan,



    Why don't you publish the source code?



    Really nice product, keep working on it!!!



    Oriol.-

  • >I have specified a From email address in the format name@company.com.



    Sorry, this is incorrect. I've specified the "To" email address like: <Parameter1>name@company.com</Parameter1>. I don't know what user it is using as the Sender. I gess Workflow Lite takes care of that?

  • Lloyd, could you verify that the account you are using to run the workflow (the one specified in the machine.config), has an email address in SharePoint?

  • Thanks Jan, that solved it. Is there a particular reason why the workflow user is being used as the sender rather than the "Modified By" user?

  • Yes, it was a design choice. It's easier to enforce that that service account has an email, than each user.

  • Great work, exactly what SharePoint Needed!!

    Now for the Question, can it be used to send docs from subsite to a Portal Area? It works fine with doc libs within same area or site

  • Dave, this feature will become available in the next version.

  • Hi guys!

    I can't seem to make it work v RC1C work. I deleted all the action types and only used DELETESOURCE but it doesn't work. Anybody has the same problem? I don't think the config.xml I edited is being accessed..How can I know if it is being used or not.

    Pls help!
    Thanks!

  • Check the event viewer? I found the error logs that in the Application section will show you what's working and what isn't. Also you might want to ensure that you have added the assembly items into the advance settings of your doclib.

    I had that happen to me and since it didn't register any errors in the event logs I realised my mistake.

  • I have just downloaded and installed the RC1c version. All the Installation steps were performed successfully. But i'm unable to see any new columns like Status, comments etc in my library. Nothing in the event logs too. Infact, it doesn't seem to have any effect on the site. Can you please let me know what may be the problem? Thanks.

  • Can any one please tell me where to get the Leadit.SharePoint.Workflow.dll from, it isn't in the installation package....

Comments have been disabled for this content.