Extension method to find root Parent Workflow of current activity

Below is an extension method  to find root Parent Workflow of current activity
  /// <summary>
  /// Get root Parent Workflow of current activity
  /// <param name=”activity”></param>
  /// <returns></returns>
  public static Activity FindRootWorkflow(this Activity activity)
  {
   List<string> list = new List<string>();
   Activity act = activity;
   while (act != null)
   {
    if (act.Parent==null)
    {
     return act;
    }
    act = act.Parent;
   }
   return null;
  }
 
It was  asked in MS Connect Suggestion “Activity to access Parent workflow or Root Workflow
 

 

TFS: how to find checked out files in different workspace

 

My machine crashed and I wanted to find which files were checked out by me on that machine.
It wasn’t obvious, but finally I found, that I can search for user.
You need to have installed 
Team Foundation Server Power Tools (April 2010) Team Foundation Server Power Tools

 
In Visual Studio- select menu File-Source Control Explorer – Find in Source Control– specify username and it will show all workspaces.
 
 
 
 
 
 

WCF: Suppress authentication for testing on different domain.

I have a WCF service and client, which worked fine, when I debug it on my local machine.

However when I deployed the service to test server on the different domain.


I’ve started to receive error

System.ServiceModel.Security.SecurityNegotiationException: The caller was not authenticated by the service. —> System.ServiceModel.FaultException: The request for security token could not be satisfied because authentication failed.

I’ve found a few similar recommendations, e.g.
<wsHttpBinding>
                <binding name=”CustomBinding”>
                    <security mode=”None”>
                        <message establishSecurityContext=”false”/>
                        <transport clientCredentialType=”None”/>
                    </security>
                </binding>
            </wsHttpBinding>
 
 
Unfortunately, it didn’t work for me.
Fortunately, after I’ve replaced wsHttpBinding  to basicHttpBinding , my client is able to access the server. 

Remix10 AU- lessons learned.

I’ve attended Australian Remix10 and below is a list the points, that I’ve learned and/or want to read more about.
The materials of US MIX10 conference are here http://live.visitmix.com/
Windows Azure ( pronounced [azh-erhttp://dictionary.reference.com/browse/Azure) – sounds great from hosting costs/redundancy, but how much work is required to change existing asp.net application with SQL backend to support Azure.
IE 9 will support HTML5

Open Data Protocol (OData)  – OData Q&A

Pivot | Features | Microsoft Silverlight Silverlight Pivot control
 

Web Deployment Packages
Web.config transformations,e.g. Web.Debug.Config- short description in the blog Common Web.Config transformations with Visual Studio 2010

Show sequenceDiagram

ASP.NET Ajax Library