This documentation is archived and is not being maintained.

XAML Activation

This topic applies to Windows Workflow Foundation 4 (WF4).

This sample demonstrates how to host a declarative workflow in IIS. The sample is a basic workflow called EchoService that has one operation.

Ee960215.Important(en-us,VS.100).gif Note:
The samples may already be installed on your computer. Check for the following (default) directory before continuing.


If this directory does not exist, go to (download page) to download all Windows Communication Foundation (WCF) and WF samples. This sample is located in the following directory.


To set up, build, and run the sample

  1. Open the XAMLActivation.sln solution in Visual Studio 2010.

  2. Build the solution by pressing F5.

  3. Run WcfTestClient.exe. From a command prompt, type in the following:

    1. cd %SystemDrive%\Program Files\Microsoft Visual Studio 10.0\Common7\IDE

    2. Run WcfTestClient.exe.

  4. Set the address of the service on WcfTestClient.exe by pressing CTRL+SHIFT+A and setting the service address to http://localhost:56133/Service.xamlx.

  5. Perform the echo operation to test the service.

  6. Deploy the Service in IIS using DeployToIIS.Bat in a command prompt with administrator privileges.

  7. Update the service address in the client to http://localhost/XAMLActivation/Service.xamlx and test the service again using WcfTestClient.exe.