<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.infosupport.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>Jonathan Mezach - All Comments</title><link>http://blogs.infosupport.com/blogs/jonathan/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP1 (Build: 31106.3070)</generator><item><title>re: Possible WCF Serialization Issue?</title><link>http://blogs.infosupport.com/blogs/jonathan/archive/2007/08/15/Possible-WCF-Serialization-Issue_3F00_.aspx#178213</link><pubDate>Fri, 19 Feb 2010 11:57:07 GMT</pubDate><guid isPermaLink="false">56f6167b-0c51-4839-ab2d-34653eeb5c9c:178213</guid><dc:creator>Uros</dc:creator><description>&lt;p&gt;I also had simillar problems with my service. One of the methods returned an IEnumerable&amp;lt;T&amp;gt;. While testing on windows 7 everything worked ok, but on Windows server machine it got EventId 1023 and a asp.net error. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.infosupport.com/aggbug.aspx?PostID=178213" width="1" height="1"&gt;</description></item><item><title>re: Message based correlation with WF/WCF in .NET 3.5</title><link>http://blogs.infosupport.com/blogs/jonathan/archive/2009/02/24/Message-based-correlation-with-WF_2F00_WCF-in-.NET-3.5.aspx#164131</link><pubDate>Fri, 29 Jan 2010 08:20:21 GMT</pubDate><guid isPermaLink="false">56f6167b-0c51-4839-ab2d-34653eeb5c9c:164131</guid><dc:creator>Hannes Kock</dc:creator><description>&lt;p&gt;Wohoo!! Thanks alot m8! Saved my year of bad code haha ;D Now I&amp;#39;ts gonna get alot cleaner.&lt;/p&gt;
&lt;p&gt;*kisses*&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.infosupport.com/aggbug.aspx?PostID=164131" width="1" height="1"&gt;</description></item><item><title>re: Message based correlation with WF/WCF in .NET 3.5</title><link>http://blogs.infosupport.com/blogs/jonathan/archive/2009/02/24/Message-based-correlation-with-WF_2F00_WCF-in-.NET-3.5.aspx#162971</link><pubDate>Tue, 26 Jan 2010 07:32:20 GMT</pubDate><guid isPermaLink="false">56f6167b-0c51-4839-ab2d-34653eeb5c9c:162971</guid><dc:creator>Jonathan Mezach</dc:creator><description>&lt;p&gt;You&amp;#39;ll need to use the ContextMessageProperty class in the System.ServiceModel.Channels namespace (System.WorkflowServices assembly though). You&amp;#39;ll need to do the same check in both the GetExistingInstanceContext and the InitializeInstanceContext members of the IInstanceContextProvider interface (or at least that is what I&amp;#39;ve done). In both operations you will get the message, so you can use the ContextMessageProperty.TryGet operation to determine if its already there (if normal correlation between client and server is used). If it&amp;#39;s not there, you can create a new instance of the ContextMessageProperty and use the AddOrReplaceInMessage operation to modify the message so that it contains it. That&amp;#39;s all there is to it really.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.infosupport.com/aggbug.aspx?PostID=162971" width="1" height="1"&gt;</description></item><item><title>re: Message based correlation with WF/WCF in .NET 3.5</title><link>http://blogs.infosupport.com/blogs/jonathan/archive/2009/02/24/Message-based-correlation-with-WF_2F00_WCF-in-.NET-3.5.aspx#162834</link><pubDate>Mon, 25 Jan 2010 16:03:41 GMT</pubDate><guid isPermaLink="false">56f6167b-0c51-4839-ab2d-34653eeb5c9c:162834</guid><dc:creator>Hannes Kock</dc:creator><description>&lt;p&gt;Ah I see. But after wrapping it, I dont get how to actually override the instanceId. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.infosupport.com/aggbug.aspx?PostID=162834" width="1" height="1"&gt;</description></item><item><title>re: Message based correlation with WF/WCF in .NET 3.5</title><link>http://blogs.infosupport.com/blogs/jonathan/archive/2009/02/24/Message-based-correlation-with-WF_2F00_WCF-in-.NET-3.5.aspx#161966</link><pubDate>Fri, 22 Jan 2010 16:22:20 GMT</pubDate><guid isPermaLink="false">56f6167b-0c51-4839-ab2d-34653eeb5c9c:161966</guid><dc:creator>Jonathan Mezach</dc:creator><description>&lt;p&gt;I&amp;#39;ve created a class that implements IInstanceContextProvider and given it a constructor that also takes in an instance of IInstanceContextProvider. Then I&amp;#39;ve implemented an IServiceBehavior which takes the existing IInstanceContextProvider and passes that to the constructor of my own IInstanceContextProvider implementation.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.infosupport.com/aggbug.aspx?PostID=161966" width="1" height="1"&gt;</description></item><item><title>re: Message based correlation with WF/WCF in .NET 3.5</title><link>http://blogs.infosupport.com/blogs/jonathan/archive/2009/02/24/Message-based-correlation-with-WF_2F00_WCF-in-.NET-3.5.aspx#161964</link><pubDate>Fri, 22 Jan 2010 16:08:07 GMT</pubDate><guid isPermaLink="false">56f6167b-0c51-4839-ab2d-34653eeb5c9c:161964</guid><dc:creator>Hannes Kock</dc:creator><description>&lt;p&gt;Hm, how exactly are you wrapping WorkflowInstanceContextProvider?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.infosupport.com/aggbug.aspx?PostID=161964" width="1" height="1"&gt;</description></item><item><title>re: Message based correlation with WF/WCF in .NET 3.5</title><link>http://blogs.infosupport.com/blogs/jonathan/archive/2009/02/24/Message-based-correlation-with-WF_2F00_WCF-in-.NET-3.5.aspx#161961</link><pubDate>Fri, 22 Jan 2010 15:53:57 GMT</pubDate><guid isPermaLink="false">56f6167b-0c51-4839-ab2d-34653eeb5c9c:161961</guid><dc:creator>Hannes Kock</dc:creator><description>&lt;p&gt;Ooh nice! First time i´ve seen anyone like me messing around with the instanceId and creating a workflow with an ID you actually want. &lt;/p&gt;
&lt;p&gt;I´ve made a custom binding and channel that rests before the securitybinding and creates workflow instances with correct id and attaching the ID to the context (binding inheriting from IContextBindingElement). &amp;nbsp;The problem im in is that when removing the securityheader it all breaks down. Cusom channels is a mess! So i´m looking for alternative solutions. Will check out the IInstanceContextProvider.&lt;/p&gt;
&lt;p&gt;What you should do is making the workflow-creating bit alot more visible and extensible. I´ve digged down in the classes creating the workflow in the ReceiveActivity and it aint easy to do anything about.&lt;/p&gt;
&lt;p&gt;(me scenario is that i have a custom header already having a transactionId - dont wanna care about a correlation between transactionId and txId for the workflow)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.infosupport.com/aggbug.aspx?PostID=161961" width="1" height="1"&gt;</description></item><item><title>re: Possible WCF Serialization Issue?</title><link>http://blogs.infosupport.com/blogs/jonathan/archive/2007/08/15/Possible-WCF-Serialization-Issue_3F00_.aspx#50862</link><pubDate>Mon, 07 Dec 2009 19:10:14 GMT</pubDate><guid isPermaLink="false">56f6167b-0c51-4839-ab2d-34653eeb5c9c:50862</guid><dc:creator>Phyo</dc:creator><description>&lt;p&gt;This post has finally solved my problem. &amp;nbsp;It is 3:00 AM in Singapore here, and I have spent debugging, un-installing .NET, switching machines to machines with different configs, Googling all over the net, books, article. &amp;nbsp;Rootcause is &amp;quot;IList&amp;lt;T&amp;gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;Strange enought, the IList&amp;lt;T&amp;gt; will have no problem in Windows 7 Prof with .NET 3.5 SP1. &amp;nbsp;Thats why i did not suspect IList&amp;lt;T&amp;gt; at first.&lt;/p&gt;
&lt;p&gt;But thank you so much!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.infosupport.com/aggbug.aspx?PostID=50862" width="1" height="1"&gt;</description></item><item><title>re: Possible WCF Serialization Issue?</title><link>http://blogs.infosupport.com/blogs/jonathan/archive/2007/08/15/Possible-WCF-Serialization-Issue_3F00_.aspx#38859</link><pubDate>Fri, 20 Nov 2009 11:02:10 GMT</pubDate><guid isPermaLink="false">56f6167b-0c51-4839-ab2d-34653eeb5c9c:38859</guid><dc:creator>Richard Nagle</dc:creator><description>&lt;p&gt;The same problem occurs if you use IEnumerable&amp;lt;T&amp;gt;.&lt;/p&gt;
&lt;p&gt;Changed it to Collection&amp;lt;T&amp;gt; and it works fine.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.infosupport.com/aggbug.aspx?PostID=38859" width="1" height="1"&gt;</description></item><item><title>re: Even better message based correlation</title><link>http://blogs.infosupport.com/blogs/jonathan/archive/2009/03/02/Even-better-message-based-correlation.aspx#35120</link><pubDate>Sun, 01 Nov 2009 18:25:35 GMT</pubDate><guid isPermaLink="false">56f6167b-0c51-4839-ab2d-34653eeb5c9c:35120</guid><dc:creator>palmeregod</dc:creator><description>&lt;p&gt;features scheme business include&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.infosupport.com/aggbug.aspx?PostID=35120" width="1" height="1"&gt;</description></item><item><title>re: Even better message based correlation</title><link>http://blogs.infosupport.com/blogs/jonathan/archive/2009/03/02/Even-better-message-based-correlation.aspx#35111</link><pubDate>Sun, 01 Nov 2009 17:09:49 GMT</pubDate><guid isPermaLink="false">56f6167b-0c51-4839-ab2d-34653eeb5c9c:35111</guid><dc:creator>robert ivanc</dc:creator><description>&lt;p&gt;Excellent work! Have you perhaps published any of this somewhere? &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.infosupport.com/aggbug.aspx?PostID=35111" width="1" height="1"&gt;</description></item><item><title>re: Possible WCF Serialization Issue?</title><link>http://blogs.infosupport.com/blogs/jonathan/archive/2007/08/15/Possible-WCF-Serialization-Issue_3F00_.aspx#16428</link><pubDate>Tue, 28 Jul 2009 08:00:14 GMT</pubDate><guid isPermaLink="false">56f6167b-0c51-4839-ab2d-34653eeb5c9c:16428</guid><dc:creator>Konstantin Zaikin</dc:creator><description>&lt;p&gt;I had the same problem.&lt;/p&gt;
&lt;p&gt;The reason was a ref IList&amp;lt;T&amp;gt; parameter.&lt;/p&gt;
&lt;p&gt;As soon as ref was removed, IList&amp;lt;T&amp;gt; parameter worked. No ExecutionEngineException since then.&lt;/p&gt;
&lt;p&gt;ref IList&amp;lt;T&amp;gt; is a no-no for WCF.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.infosupport.com/aggbug.aspx?PostID=16428" width="1" height="1"&gt;</description></item><item><title>re: Message based correlation with WF/WCF in .NET 3.5</title><link>http://blogs.infosupport.com/blogs/jonathan/archive/2009/02/24/Message-based-correlation-with-WF_2F00_WCF-in-.NET-3.5.aspx#15143</link><pubDate>Wed, 25 Feb 2009 10:10:15 GMT</pubDate><guid isPermaLink="false">56f6167b-0c51-4839-ab2d-34653eeb5c9c:15143</guid><dc:creator>Robert te Kaat</dc:creator><description>&lt;p&gt;Remember to implement IEventActivity, etc when creating the CorrelationSequenceActivity, otherwise it can't be used with statemachines. Shouldn't be too hard, since you can forward all calls those interfaces to the receiveactivity, which implements them as wel.&lt;/p&gt;
&lt;p&gt;Also the ReceiveActivity is a sequence-activity itself. To make sure one doesn't accidentally add it's childs to the CorrelationSequenceActivity, instead of the ReceiveActivity, you may want to create a custom activitydesigner for the correlationsequenceactivity as well, which only allows a single ReceiveActivity as child.&lt;/p&gt;
&lt;p&gt;When using guids as functional keys, mapping-logic can be made generic. However, functional keys are hardly ever guids, thus you may need to specify a mapper for the CorrelationSequenceActivity as well (property?).&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.infosupport.com/aggbug.aspx?PostID=15143" width="1" height="1"&gt;</description></item><item><title>re: Message based correlation with WF/WCF in .NET 3.5</title><link>http://blogs.infosupport.com/blogs/jonathan/archive/2009/02/24/Message-based-correlation-with-WF_2F00_WCF-in-.NET-3.5.aspx#15142</link><pubDate>Wed, 25 Feb 2009 09:57:04 GMT</pubDate><guid isPermaLink="false">56f6167b-0c51-4839-ab2d-34653eeb5c9c:15142</guid><dc:creator>Jonathan Mezach</dc:creator><description>&lt;p&gt;This is something we are still working on, but it's a two-fold problem. You'll need to extract the 'functional key' from the message and then map that 'functional key' to the workflow instance ID. There are several ways of solving this, but we haven't really decided on which way to go. We were thinking of creating a CorrelationSequenceActivity that you can put in your workflow which adds an attached property to the ReceiveActivity. Combined with a designer you could select the property on the input message that is expected by the ReceiveActivity which could then be mapped to an XPath query. I think Marcel is working on such a solution.&lt;/p&gt;
&lt;p&gt;This still wouldn't resolve the mapping from the 'functional key' to the instance ID though, so we'll have to think about how to do that.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.infosupport.com/aggbug.aspx?PostID=15142" width="1" height="1"&gt;</description></item><item><title>re: Message based correlation with WF/WCF in .NET 3.5</title><link>http://blogs.infosupport.com/blogs/jonathan/archive/2009/02/24/Message-based-correlation-with-WF_2F00_WCF-in-.NET-3.5.aspx#15141</link><pubDate>Wed, 25 Feb 2009 09:49:11 GMT</pubDate><guid isPermaLink="false">56f6167b-0c51-4839-ab2d-34653eeb5c9c:15141</guid><dc:creator>Robert te Kaat</dc:creator><description>&lt;p&gt;Niiice! It would be really great if you implement this as generic functionality where the actual 'functional key' of the incoming message can be configured using an xpath-query.&lt;/p&gt;
&lt;p&gt;Best place would probably using an attribute on the method-definition in the contract (perhaps there's already some property on the OperationContractAttribute that can be used?). However, at the point of intercepting the message (IDispathMessageInspector:AfterReceiveRequest), WCF hasn't mapped the request to a method yet, so you can't determine which method's attributes to read. Did you find a solution for that as well, or do you scope the 'functional-key-definition' on the contract or even whole service?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.infosupport.com/aggbug.aspx?PostID=15141" width="1" height="1"&gt;</description></item></channel></rss>