busapps
asked on
SPD designer Workflow error. Failed to compile the workflow
Hello,
I am gettinhg this error when opening a workflow in SPD.
Errors were found when compiling the workflow.The workflow files were saved but cannot be run.
Furthermore when I am trying to click the advanced button on the error message I get the:
following message
(1, 1) The root activity type is invalid.)
Here is the ComponentModel.WorkflowCom piler section from the webconfig
<System.Workflow.Component Model.Work flowCompil er>
<authorizedTypes>
<authorizedType Assembly="System.Workflow. Activities , Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad3 64e35" Namespace="System.Workflow .*" TypeName="*" Authorized="True"/>
<authorizedType Assembly="System.Workflow. ComponentM odel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad3 64e35" Namespace="System.Workflow .*" TypeName="*" Authorized="True"/>
<authorizedType Assembly="System.Workflow. Runtime, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad3 64e35" Namespace="System.Workflow .*" TypeName="*" Authorized="True"/>
<authorizedType Assembly="System.Transacti ons, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193 4e089" Namespace="System*" TypeName="*" Authorized="True"/>
<authorizedType Assembly="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193 4e089" Namespace="System*" TypeName="*" Authorized="True"/>
<authorizedType Assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193 4e089" Namespace="System*" TypeName="*" Authorized="True"/>
<authorizedType Assembly="Microsoft.ShareP oint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e 9429c" Namespace="Microsoft.Share Point.Work flow" TypeName="SPWorkflowActiva tionProper ties" Authorized="True" />
<authorizedType Assembly="Microsoft.ShareP oint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e 9429c" Namespace="Microsoft.Share Point.Work flow" TypeName="SPWorkflowTaskPr operties" Authorized="True" />
<authorizedType Assembly="Microsoft.ShareP oint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e 9429c" Namespace="Microsoft.Share Point.Work flow" TypeName="SPWorkflowHistor yEventType " Authorized="True" />
<authorizedType Assembly="Microsoft.ShareP oint.Workf lowActions , Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e 9429c" Namespace="Microsoft.Share Point.Work flowAction s" TypeName="*" Authorized="True" />
<authorizedType Assembly="DP.Sharepoint.Wo rkflow, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0298457208d aed83" Namespace="DP.Sharepoint.W orkflow" TypeName="*" Authorized="True" />
</authorizedTypes>
</System.Workflow.Componen tModel.Wor kflowCompi ler>
Please suggest how to fix this.
I am gettinhg this error when opening a workflow in SPD.
Errors were found when compiling the workflow.The workflow files were saved but cannot be run.
Furthermore when I am trying to click the advanced button on the error message I get the:
following message
(1, 1) The root activity type is invalid.)
Here is the ComponentModel.WorkflowCom
<System.Workflow.Component
<authorizedTypes>
<authorizedType Assembly="System.Workflow.
<authorizedType Assembly="System.Workflow.
<authorizedType Assembly="System.Workflow.
<authorizedType Assembly="System.Transacti
<authorizedType Assembly="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193
<authorizedType Assembly="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c56193
<authorizedType Assembly="Microsoft.ShareP
<authorizedType Assembly="Microsoft.ShareP
<authorizedType Assembly="Microsoft.ShareP
<authorizedType Assembly="Microsoft.ShareP
<authorizedType Assembly="DP.Sharepoint.Wo
</authorizedTypes>
</System.Workflow.Componen
Please suggest how to fix this.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the response. For some reason the under authorized type reference to workflowaction was missing. Added it in and now it works fine.