2010-08-03 59 views
0

我嘗試根據這個步行通過參加一個化裝活動添加到我的CRM服務器: http://msdn.microsoft.com/en-us/library/ee704600.aspx微軟動態CRM自定義活動煩惱

當我嘗試發佈我的活動工作流程我得到一個錯誤。跟蹤flie說:

>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&iTotal=1&iIndex=0&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) 

雖然我已將此添加到web.config中:

<System.Workflow.ComponentModel.WorkflowCompiler> 
    <authorizedTypes> 

     <authorizedType Assembly="Nothing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d888809fdb5a2449" Namespace ="Nothing" TypeName="QAAddActivity" Authorized="True" /> 

幫助?

+0

社會維基爲什麼呢? – 2010-08-03 08:59:25

回答