WorkflowServiceHostFactory cannot resolve to an activity or service type

Nov 1, 2012 at 6:44 AM

Hi Serena,

I followed your method to host the workflow service in IIS 7. However, whenever I run the service I always encountered WorkflowServiceHostFactory cannot resolve '...' to an activity or service type. Did I miss something?

Nov 3, 2012 at 1:24 AM


Are you able to post the config file serviceModel section and also the full error message in here?



Nov 3, 2012 at 4:40 PM

Hi Serena,

I'm able to fix that problem. I should use WCF Service Application to create the host library instead of using standard class library project. It's my mistake. Now, it works :)

However, there is one thing about correlation id that puzzles me.  I have to use sm:header()/tempuri:CorrelationID to make the correlation works, but you're able to use sm:header()/xg0:CorrelationID on the receive activity. You mentioned this bug on your blog. Did you tweak somewhere in your code?

Thanks and Regards,


Nov 4, 2012 at 1:55 AM

Hi Reno,

I am not sure if they have fixed the bug but yeah, I went and edited the XAML :)

The correlation bug won't arise if we are not using Message Contracts.