When I copy my workflow folder over to my live site I get an error when I click on the publish button which makes me think that it's running through the workflow but then hits a problem when trying to assign the authors name to the news article. The error is pretty non helpful, just a popup that says:
Object reference not set to an instance of an object
I tried changing the path within the virtual path settings and also within the workflow settings but nothing helps.
I've now rolled back so that people can post news articles but it would be helpful if anyone can shed some ideas on this.
Posted by Community Admin on 22-Mar-2013 00:00
If the custom workflow is working when used locally then at the server something is missing in the configuration for the custom workflow.
I suppose the development project and the live site both use Sitefintiy license for the same edition, professional and enterprise edition is needed to use custom workflows in sitefinity and the custom workflow is build as class library project composed of a class for the modified workflow activity that sets author to news items and the workflow.xamlx.
Double check if the custom workflow coming from the class library is part of the bin folder for the project deployed live and is the workflow registered.
Register the workflow virtual path as described in the documentation and restart the application after the registration of the virtual path so it will become active.
Possibley the restart is still needed to start using the new virtual path.
When placing the dll library for the custom workflow in the bin folder build sitefinty project if sitefintiy is deployed as asp.net web application. If it is used as asp.net website no recompilation is needed when adding new components to the website.
To avoid building sitefintiy when used as web application build the project locally and move custom workflow dll and sitefintiywebapp.dll to the live site.
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items