Self Hosting WF 4.5 services using C# expressions

If you attempt to self-host a windows workflow 4.5 service which uses C# expressions, you may see an error similar to the following:


Operation ‘XYZ|{http://tempuri.org/}IXYZ’ on service instance with identifier ’16800afc-0f50-4fef-871d-fcdc0b866704′ cannot be performed at this time. Please ensure that the operations are performed in the correct order and that the binding in use provides ordered delivery guarantees.

IIS hosts the service without any problems.

Check out the link below for additional info and steps to use compilation as a possible workaround.

https://connect.microsoft.com/VisualStudio/feedback/details/741537/cannot-self-host-a-workflow-service-using-c-expressions

404.3 errors hosting WF services in IIS 8

While hosting workflow service files (XAMLX) in IIS 8, you may receive the following error:

HTTP Error 404.3 – Not Found

The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

Enabling WCF HTTP Activation resolved the issue for me.

  • Open the Windows Features screen
  • drill down to .NET Framework 4.5  Advanced Services-> WCF Services
  • Check HTTP Activation

After this change both .xamlx and .svc files appeared in the IIS Handler Mappings section, and the 404.3 errors stopped.