title: Microsoft dynamic CRM Custom activity trouble
body: <p>im trying to add a costume activity to my CRM server according to this walk-through:
  <a href="http://msdn.microsoft.com/en-us/library/ee704600.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ee704600.aspx</a></p>
  
  <p>when i try to publish a work flow with my activity i get an error. the trace flie says :</p>
  
  <pre><code>&gt;MSCRM Error Report:
  --------------------------------------------------------------------------------------------------------
  Error: Exception of type 'System.Web.HttpUnhandledException' was thrown.
  
  Error Number: 0x80045001
  
  Error Message: Workflow compilation failed:
  WF363: Type QAAddActivity, Nothing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d888809fdb5a2449 is not marked as authorized in the application configuration file.
  
  Error Details: Workflow compilation failed:
  WF363: Type QAAddActivity, Nothing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d888809fdb5a2449 is not marked as authorized in the application configuration file.
  
  Source File: Not available
  
  Line Number: Not available
  
  Request URL: http://192.168.2.82/Leverate/_grid/cmds/dlg_activate.aspx?iObjType=4703&amp;iTotal=1&amp;iIndex=0&amp;iId={CAF35EFA-80C0-418B-A97B-06820760D777}
  
  Stack Trace Info: [CrmException: Workflow compilation failed:
  WF363: Type QAAddActivity, Nothing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d888809fdb5a2449 is not marked as authorized in the application configuration file.]
     at Microsoft.Crm.ObjectModel.WorkflowServiceInternal`1.CompileWorkflow(ExecutionContext context, WorkflowEntity definition, List`1 dependencies, List`1 customActivityIds, Guid activationId)
  
  [CrmException: Workflow compilation failed:
  WF363: Type QAAddActivity, Nothing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d888809fdb5a2449 is not marked as authorized in the application configuration file.]
     at Microsoft.Crm.ObjectModel.WorkflowServiceInternal`1.CompileWorkflow(ExecutionContext context, WorkflowEntity definition, List`1 dependencies, List`1 customActivityIds, Guid activationId)
     at Microsoft.Crm.ObjectModel.WorkflowServiceInternal`1.CompletePublishing(WorkflowEntity definition, List`1 dependencies, List`1 customActivityIds, ExecutionContext context)
  </code></pre>
  
  <p>though i added this to the web.config :</p>
  
  <pre><code>&lt;System.Workflow.ComponentModel.WorkflowCompiler&gt;
      &lt;authorizedTypes&gt;
  
        &lt;authorizedType Assembly="Nothing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d888809fdb5a2449" Namespace ="Nothing" TypeName="QAAddActivity" Authorized="True" /&gt;
  </code></pre>
  
  <p>help?</p>