Service activation may fail when a pre-compiled WCF workflow service that is wrapped together with a .svc file is hosted
This article helps you resolve the problem where the service activation may fail when a pre-compiled Windows Communication Foundation (WCF) workflow service that is wrapped together with a .svc file is hosted.
Original product version: Windows Workflow Foundation 4.0
Original KB number: 2286155
Symptoms
When a pre-compiled WCF workflow service that is wrapped together with a .svc file is hosted, the service activation may fail with an exception error.
Cause
This problem may occur when the service path contains non-English characters. For example, the following service path may cause this problem:
application_name+directory_name+file_name
Workaround
To work around this problem, use configuration-based activation.
For example, consider that you have an application and a pre-compiled WCF workflow service such as CalculatorService
that is wrapped together in the Service.svc file in the following way:
<% @ServiceHost
language=c#
Factory="System.ServiceModel.Activities.Activation.WorkflowServiceHostFactory,Service="CalculatorService"%>
When CalculatorService
is hosted, the service activation may fail with an exception error.
To work around this problem, add a part that resembles the following example to the application to root Web.config file:
<System.serviceModel>
<serviceHostingEnvironment>
<serviceActivations>
<add relativeAddress="~/service.svc" service="CalculatorService"
factory="System.ServiceModel.Activities.Activation.WorkflowServiceHostFactory"/>
</serviceActivations>
</serviceHostingEnvironment>
</system.serviceModel>
More information
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for