September 2009 Entries

"The project type is not supported by this installation" for Workflow project

Download from ActivityExecutionContext in Workflows caused "The project type is not supported by this installation" when opened the solution. On my machine I have Workflow only for VS 2008, but not for VS 2005, but the download solution was in 2005 format. I've explicitely started VS 2008 and then converted solution from 2005 to 2008. Error disappeared. Similar problem with Moral: If you are trying to develop with .NET 3.0 maybe it’s a good idea to check that .NET 3.0 is installed first... described ......

Using of Workflow Dependency properties.

In our Workflow application it was created a lot of Workflow level Dependency properties that was used to interchange data between different activities. Workflow.PropertyA= Activity1.PropertyA Activity2.PropertyA=Workflo... We believed that is a safe way to avoid concurrency problems. But it was WRONG. Article ActivityExecutionContext in Workflows explains, that Workflow properties as a shared data between activities is not a safe method and can cause concurrency errors in case of CAG or ......

LongestCommonPrefix function for 2 strings

The function that finds Common Prefix for 2 strings //converted from http://stackoverflow.com/qu... public static string LongestCommonPrefix(string str1, string str2) { int minLen = Math.Min(str1.Length, str2.Length); for (int i = 0; i < minLen; i++) { if (str1[i] != str2[i]) { return str1.Substring( 0, i); } } return str1.Substring( 0, minLen); } ......

«September»
SunMonTueWedThuFriSat
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910