无法创建未知类型“{clr-namespace:ZROK.WFDesigner;assembly=ZROK.WFDesigner}CallAgentFun”。这个是我自定义的一个流程(CallAgentFun) 我想要在.net下运行这个工作流,在使用系统的控件工具的时候都正常,但是使用带自定义控件的时候就会出现上面的错误。 下面是我的代码
                           WFObj wfObj = WFManager.GetWFObjFromDB(msg.ObjID);                            UTF8Encoding utf8 = new UTF8Encoding();
                            byte[] bs = utf8.GetBytes(wfObj.Definition);
                            MemoryStream memoryStream = new MemoryStream(bs);                            System.Activities.Activity activity = ActivityXamlServices.Load(memoryStream);
                            WorkflowApplication myInstance = new WorkflowApplication(activity);
                            myInstance.Run();最后的Run之前都正常 数据也都进去了 错误就在RUN那里 在Windows里使用的时候没问题 但是转到web下就出错了
<Activity mc:Ignorable="sap" 
x:Class="ZROK.WFDesigner.template.activityBuilder" 
sap:VirtualizedContainerService.HintSize="240,240" 
mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" 
xmlns:mc="http://schemas.openxmlformats.org/up-compatibility/2006" 
xmlns:mv="clr-namespace:Microsoft.VisualBasic;assembly=System" 
xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" 
xmlns:s="clr-namespace:System;assembly=mscorlib" 
xmlns:s1="clr-namespace:System;assembly=System" 
xmlns:s2="clr-namespace:System;assembly=System.Xml" 
xmlns:s3="clr-namespace:System;assembly=System.Core" xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" 
xmlns:scg="clr-namespace:System.Collections.Generic;assembly=System" 
xmlns:scg1="clr-namespace:System.Collections.Generic;assembly=System.ServiceModel" 
xmlns:scg2="clr-namespace:System.Collections.Generic;assembly=System.Core" 
xmlns:scg3="clr-namespace:System.Collections.Generic;assembly=mscorlib" 
xmlns:sd="clr-namespace:System.Data;assembly=System.Data" 
xmlns:sd1="clr-namespace:System.Data;assembly=System.Data.DataSetExtensions" 
xmlns:sl="clr-namespace:System.Linq;assembly=System.Core" 
xmlns:st="clr-namespace:System.Text;assembly=mscorlib"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
xmlns:zw="clr-namespace:ZROK.WFDesigner;assembly=ZROK.WFDesigner">
  <zw:CallAgentFun AgentFun="wangqian" AgentID="1" sap:VirtualizedContainerService.HintSize="200,200" mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces" />
</Activity>这个是我要运行的工作流的XAML文件