title: XAMLX Workflow with c# expressions
body: <p>I'm developing a self host workflow in vs2012/.Net 4.5/WF 4.5 and having quite a hard time figuring out the following message</p>
  
  <blockquote>
    <p>Expression Activity type 'CSharpValue`1' requires compilation in order to run. Please ensure that the workflow has been compiled.</p>
  </blockquote>
  
  <p>This error happens when i call a activity generated by a service reference (When you add a WCF service reference, each action on the endpoint become a activity).</p>
  
  <p>Looking around in MSDN i've came across these articles:</p>
  
  <ul>
  <li><a href="http://msdn.microsoft.com/en-us/library/ee358749.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ee358749.aspx</a></li>
  <li><a href="http://msdn.microsoft.com/en-us/library/29110be7-f4e3-407e-8dbe-78102eb21115#CodeWorkflows" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/29110be7-f4e3-407e-8dbe-78102eb21115#CodeWorkflows</a></li>
  </ul>
  
  <p>They said that</p>
  
  <blockquote>
    <p>When a workflow service is hosted in IIS or WAS then no additional steps are required, but if the XAML workflow service is self-hosted, then the C# expressions must be compiled</p>
  </blockquote>
  
  <p>So, i finally get to my question: <strong>What should I do so i can hit F5 and debug my workflow, having it run on IIS? and stop this god damn exception...</strong></p>
  
  <p>I've tried to go to the project config and set to use local IIS as follow: <img src="https://i.stack.imgur.com/Hc77I.png" alt="iis config"></p>
  
  <p>but since i still get the error i assume it's not working...</p>