<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Versioning long running workflows part 2</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/11/versioning-long-running-workflows-part-2.aspx</link><description>Part 1 Part 2 Part 3 Part 4 In my previous post I demonstrated how to keep multiple versions of an assembly around and how to use the assemblyBinding element in the app.config to let the runtime load multiple versions of a worklfow. In the end we had</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>Ghtdyryq</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/11/versioning-long-running-workflows-part-2.aspx#1700885</link><pubDate>Tue, 14 Jul 2009 08:50:42 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1700885</guid><dc:creator>Ghtdyryq</dc:creator><description>&lt;p&gt;Fj6MMj &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1700885" width="1" height="1"&gt;</description></item><item><title>re: Versioning long running workflows part 2</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/11/versioning-long-running-workflows-part-2.aspx#1694897</link><pubDate>Wed, 10 Jun 2009 12:42:20 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1694897</guid><dc:creator>Moi</dc:creator><description>&lt;p&gt;So I don&amp;#39;t have the issue with &amp;#39;The type ... exists in both...&amp;#39;, but now I have another issue:&lt;/p&gt;
&lt;p&gt;I was getting the exception:&lt;/p&gt;
&lt;p&gt;&amp;#39;Order cannot be cast to Order&amp;#39; at the line: &amp;#39;mi.Invoke(myService, new object[] { selectedOrder });&amp;#39;.&lt;/p&gt;
&lt;p&gt;So I used the Activator.CreateInstance method to create an Order object corresponding to the right assembly.&lt;/p&gt;
&lt;p&gt;But now, after raising the event, I call ManualWorkflowScheduler.RunWorkflow and it returns false, while it used to returns true.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1694897" width="1" height="1"&gt;</description></item><item><title>re: Versioning long running workflows part 2</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/11/versioning-long-running-workflows-part-2.aspx#1694678</link><pubDate>Tue, 09 Jun 2009 07:54:59 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1694678</guid><dc:creator>Moi</dc:creator><description>&lt;p&gt;Thanks for your great series of articles !&lt;/p&gt;
&lt;p&gt;Still I am facing an issue with the method &amp;#39;SendEvent2&amp;#39; at the line :&lt;/p&gt;
&lt;p&gt; Type type = assembly.GetType(typeof(wfOrderWorkflows.IOrderService).FullName);&lt;/p&gt;
&lt;p&gt;returns &amp;quot;The type &amp;#39;wfOrderWorkflows.IOrderService&amp;#39; exists in both &amp;#39;wfOrderWorkflows.dll&amp;#39; and &amp;#39;wfOrderWorkflows.dll&amp;#39;&amp;quot;, and IOrderService is in the same assembly than the workflow.&lt;/p&gt;
&lt;p&gt;Am I doing something wrong ?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1694678" width="1" height="1"&gt;</description></item><item><title>re: Versioning long running workflows part 2</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/11/versioning-long-running-workflows-part-2.aspx#1692508</link><pubDate>Fri, 15 May 2009 23:55:12 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1692508</guid><dc:creator>Joe</dc:creator><description>&lt;p&gt;Thanks Maurice, i&amp;#39;m getting much closer!&lt;/p&gt;
&lt;p&gt;Now i am stuck on my custom ExternalEventArgs that I am passing to the event. I am getting an error saying that &amp;quot;NurseUpdateEventArgs&amp;quot; cannot be converted to &amp;quot;NurseUpdateEventArgs&amp;quot;. I am pretty sure it is because I am getting the NurseUpdateEventArgs for the current version, not the version that is running. How would I use reflection to get a reference to the correct EventArgs class (defined in my workflow)?&lt;/p&gt;
&lt;p&gt;Thanks again for a great article!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1692508" width="1" height="1"&gt;</description></item><item><title>re: Versioning long running workflows part 2</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/11/versioning-long-running-workflows-part-2.aspx#1680715</link><pubDate>Mon, 23 Mar 2009 22:16:08 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1680715</guid><dc:creator>Zhou</dc:creator><description>&lt;p&gt;Nevermind, I was able to find part 3 by going to September 2008 archives and then scrolling down.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1680715" width="1" height="1"&gt;</description></item><item><title>re: Versioning long running workflows part 2</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/11/versioning-long-running-workflows-part-2.aspx#1680664</link><pubDate>Mon, 23 Mar 2009 19:20:14 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1680664</guid><dc:creator>Zhou</dc:creator><description>&lt;p&gt;I can&amp;#39;t get to part3, can you help please?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1680664" width="1" height="1"&gt;</description></item><item><title>re: Versioning long running workflows part 2</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/11/versioning-long-running-workflows-part-2.aspx#1674930</link><pubDate>Sun, 01 Mar 2009 00:18:32 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1674930</guid><dc:creator>Maurice</dc:creator><description>&lt;p&gt;Ho Joe,&lt;/p&gt;
&lt;p&gt;Either using the GAC or side by side versioning using the config file and multiple folders should work just fine in an ASP.NET application.&amp;#39;&lt;/p&gt;
&lt;p&gt;If you go the route of creating custom activities you would create public methods on your activity which wou would call with the data needed as parameters. Then use dependency properties to expose the data as needed.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1674930" width="1" height="1"&gt;</description></item><item><title>re: Versioning long running workflows part 2</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/11/versioning-long-running-workflows-part-2.aspx#1674636</link><pubDate>Fri, 27 Feb 2009 22:45:27 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1674636</guid><dc:creator>Joe Krueger</dc:creator><description>&lt;p&gt;I have been struggling with versioning workflows that contain HandleExternalEvent activities for a long time and this is by far the best article I have seen on the subect. I am still struggling with a few items that you might be able to help me with. First off, where do you put the versions folder in a web application and what would the config look like in the web.config (what would the path to the .dll look like)? Also, If you suggest replacing HandleExternalEvent activities with custom activities how do you add the handlers and parameters that would be in the HandleExternalEvent activity?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1674636" width="1" height="1"&gt;</description></item><item><title>re: Versioning long running workflows part 2</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/11/versioning-long-running-workflows-part-2.aspx#1674586</link><pubDate>Fri, 27 Feb 2009 19:53:28 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1674586</guid><dc:creator>Joe Krueger</dc:creator><description>&lt;p&gt;How do you invoke the method and pass the custom externaleventargs?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1674586" width="1" height="1"&gt;</description></item><item><title>re: Versioning long running workflows part 2</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/11/versioning-long-running-workflows-part-2.aspx#1662522</link><pubDate>Sat, 17 Jan 2009 13:11:10 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1662522</guid><dc:creator>Maurice</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Sorry about the error in the link. You can find the 4th part here: &lt;a rel="nofollow" target="_new" href="http://msmvps.com/blogs/theproblemsolver/archive/2008/09/11/versioning-long-running-workflows-part-4.aspx"&gt;msmvps.com/.../versioning-long-running-workflows-part-4.aspx&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Maurice&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1662522" width="1" height="1"&gt;</description></item><item><title>re: Versioning long running workflows part 2</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/11/versioning-long-running-workflows-part-2.aspx#1662173</link><pubDate>Thu, 15 Jan 2009 15:02:47 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1662173</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Hi, The link to part 4 of your tutorial [at the top] links back to part 3 - Is this because part 4 is not yet available?&lt;/p&gt;
&lt;p&gt;On a different note, thank you so much for the very easy to understand tutorial - I&amp;#39;ve had Workflows dropped on me from a great height and noone in the department hs used them before. I was worried about versioning and although it&amp;#39;s something to be aware of, it shouldn&amp;#39;t be a huge issue after reading this.&lt;/p&gt;
&lt;p&gt;Many thanks!&lt;/p&gt;
&lt;p&gt;Please do let us nkow about part 4 if it&amp;#39;s available :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1662173" width="1" height="1"&gt;</description></item><item><title>Versioning long running workflows part 4</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/11/versioning-long-running-workflows-part-2.aspx#1648527</link><pubDate>Mon, 22 Sep 2008 12:57:01 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1648527</guid><dc:creator>WF Community Bloggers</dc:creator><description>&lt;p&gt;Part 1 Part 2 Part 3 Part 4 In the previous blog posts we made sure we could have multiple versions of&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1648527" width="1" height="1"&gt;</description></item><item><title>Versioning long running workflows part 4</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/11/versioning-long-running-workflows-part-2.aspx#1648517</link><pubDate>Mon, 22 Sep 2008 12:23:56 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1648517</guid><dc:creator>The Problem Solver</dc:creator><description>&lt;p&gt;Part 1 Part 2 Part 3 Part 4 In the previous blog posts we made sure we could have multiple versions of&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1648517" width="1" height="1"&gt;</description></item><item><title>Versioning long running workflows part 4</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/11/versioning-long-running-workflows-part-2.aspx#1648516</link><pubDate>Mon, 22 Sep 2008 12:23:12 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1648516</guid><dc:creator>The Problem Solver</dc:creator><description>&lt;p&gt;Part 1 Part 2 part 3 In the previous blog posts we made sure we could have multiple versions of the same&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1648516" width="1" height="1"&gt;</description></item><item><title>Versioning long running workfows part 3</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/11/versioning-long-running-workflows-part-2.aspx#1647927</link><pubDate>Tue, 16 Sep 2008 15:03:41 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1647927</guid><dc:creator>WF Community Bloggers</dc:creator><description>&lt;p&gt;Part 1 Part 2 In the first article of this series I demonstrated how to get multiple versions of a workflow&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1647927" width="1" height="1"&gt;</description></item><item><title>Versioning long running workfows part 3</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/11/versioning-long-running-workflows-part-2.aspx#1647919</link><pubDate>Tue, 16 Sep 2008 14:29:10 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1647919</guid><dc:creator>The Problem Solver</dc:creator><description>&lt;p&gt;Part 1 Part 2 In the first article of this series I demonstrated how to get multiple versions of a workflow&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1647919" width="1" height="1"&gt;</description></item><item><title>Versioning long running workflows part 2</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/11/versioning-long-running-workflows-part-2.aspx#1647525</link><pubDate>Thu, 11 Sep 2008 19:09:46 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1647525</guid><dc:creator>WF Community Bloggers</dc:creator><description>&lt;p&gt;Part 1 Part 2 In my previous post I demonstrated how to keep multiple versions of an assembly around&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1647525" width="1" height="1"&gt;</description></item><item><title>Versioning long running workflows part 2</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/11/versioning-long-running-workflows-part-2.aspx#1647521</link><pubDate>Thu, 11 Sep 2008 19:01:37 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1647521</guid><dc:creator>WF Community Bloggers</dc:creator><description>&lt;p&gt;Part 1 Part 2 In my previous post I demonstrated how to keep multiple versions of an assembly around&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1647521" width="1" height="1"&gt;</description></item><item><title>Versioning long running workfows - The Problem Solver</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/11/versioning-long-running-workflows-part-2.aspx#1647520</link><pubDate>Thu, 11 Sep 2008 18:57:15 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1647520</guid><dc:creator>Versioning long running workfows - The Problem Solver</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Versioning long running workfows - The Problem Solver&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1647520" width="1" height="1"&gt;</description></item><item><title>Versioning long running workflows part 2 - The Problem Solver</title><link>http://msmvps.com/blogs/theproblemsolver/archive/2008/09/11/versioning-long-running-workflows-part-2.aspx#1647518</link><pubDate>Thu, 11 Sep 2008 18:54:17 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1647518</guid><dc:creator>Versioning long running workflows part 2 - The Problem Solver</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Versioning long running workflows part 2 - The Problem Solver&lt;/p&gt;
&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1647518" width="1" height="1"&gt;</description></item></channel></rss>