How to eliminate tempuri.org from your service WSDL

tempuri.org is the default namespace applied to WCF Services and Workflow Services.  You can and should specify your service namespace. It is recommended that you explicitly specify a name and namespace for the service contract, and an action for each operation to avoid using "http://tempuri.org" and to prevent interface and method names from being exposed…

0

How to detect if the .NET Framework Platform Update 1 is installed

Humans Go to Control Panel / Programs / Programs and Features / View Installed Updates Use the Search Box to search the updates for KB2495593 KB2478063 Or if you prefer, search the list your self Microsoft .NET Framework 4 Platform Update 1 – Runtime Update Look for .NET Framework 4 Extended Look for Update for…

2

How to create a WF4 WorkflowServiceHostFactory for AppFabric Auto-Start

Sometimes when using Windows Workflow Foundation (WF4) you need to create a custom WorkflowServiceHostFactory.  There are a couple of main reasons why you would want to do this. To configure the WorklfowServiceHost in some way like adding an extension To do some other type of initialization work when auto starting a service This morning I…

2

WF4 State Machine User Experience

State machine is a well-known model for event-driven workflows and a highly requested feature from our WF4 users, especially those looking to move their WF3 State Machine workflows to WF4. We are very pleased to provide a new, fully-supported, WF4 State Machine including runtime and designer in the .Net Framework Platform Update 1 release (KB2495593)….

3

PDC10–WF4 Session “Windows Workflow Futures”

Last year we at PDC10 we gave you a preview of the next release of Windows Workflow Foundation.  The video has just been posted to Channel 9. Windows Workflow Futures Speaker: Ron Jacobs Learn about the key investments we’re making in Windows Workflow Foundation (WF). See the WF improvements we’re working on for workflow authoring,…

1

ASP.NET WF4 / WCF and Async Calls

How should you use WF4 and WCF with ASP.NET?  For this post I’ve created a really simple workflow and WCF service that delay for a specific amount of time and then return a value.  Then I created an ASP.NET page that I can use to invoke the workflow and WCF service to test their behavior…

4

Cancelling a WF4 AsyncCodeActivity

Even when AsyncCodeActivity.Cancel is called, the activity will still execute the EndExecute method, so it isn’t immediately obvious why a second path of execution is necessary. Implementing this method is useful only when AsyncCodeActivityContext.MarkCanceled is implemented, which in turn is useful mainly when cancellation is meaningful for the underlying operation (i.e. if work already completed…


Using a WF4 SymbolResolver to access host environment information

To access environment information from within an activity, you’ll need to use the System.Activities.Hosting.SymbolResolver class. Here’s the code to access the symbol resolver from within an activity: public sealed class SymbolUser : CodeActivity{  protected override void Execute(CodeActivityContext context)  {    SymbolResolver symbolResolver = context.GetExtension<SymbolResolver>();    MyObject obj = symbolResolver[“CustomObject”] as MyObject;    Console.WriteLine(obj.MyString);  }} public class MyObject{  public…


Error message in WF4: "The argument of type ‘<type>’ cannot be used. Make sure that it is declared on an activity."

The following error might occur when an activity executes: The argument of type ‘<type>’ cannot be used. Make sure that it is declared on an activity. If the type above refers to an implementation child, then it’s possible that it’s being created in the Execute method of the activity. If this is the case, try…