The WF workflow designer is a very powerful tool for developers and non-developers who want to design workflow solutions. There is a desire in the community to host workflow designer in web applications and questions on how to achieve this keep on coming up. Ghenadie Plingau and I decided to write up a background and information regarding the task of hosting workflow designer in web application. We hope you find this useful.
The main reason why it is hard to host workflow designer in a web application is CLR Code Access Security. Workflow designer uses reflection and needs full trust permission set to execute. There are multiple ways to implement workflow authoring functionalities in a web application. The following are the options you have if you desire to achieve this:
The following are related forums post on this issue:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=147319&SiteID=1
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=190987&SiteID=1
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=621636&SiteID=1