由于XAML中的错误,无法加载活动 [英] Activity could not be loaded because of errors in the XAML

查看:138
本文介绍了由于XAML中的错误,无法加载活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



您好: :

我已经创建了一组 自定义活动 活动库中,当我在控制台项目中测试这些活动时,VS会出现以下错误:



Hello:

I have created a set of custom activities in Activity library, and when I test these activities in a console project, the VS gives the following error:

在程序集"BPMNCustomActivities"中找不到类型"BPMNCustomActivities.CustomActivities.Loops.For".

以及自定义活动 对于位于该命名空间中

and the custom activity For is in that namespace

自定义活动设计器消失并变为红色,并显示以下消息:

由于XAML中的错误,无法加载活动

如果有人知道为什么会发生这种情况,请回答

最佳
问候

Best
Regards

八音键

推荐答案

Octavio,
这意味着在活动步骤的XAML反序列化中出了点问题.活动设计器不出现是为了帮助简化调试过程. (对于XAML尝试引用的情况,您也会看到一些类似的行为 类中不再存在的属性.)

有时人们会遇到这样的问题,因为他们拥有过时的,已加盖的装配体副本.否则,我认为这将是一个更直接的类型或程序集加载问题-基于缺少的程序集引用或类似内容.

Hi Octavio,
This means that something went wrong in the XAML deserialization of the activity step. The activity designer not showing up is meant to help make this easier to debug. (You'll also see some similar behavior for scenarios such as your XAML tries to reference properties that don't exist on the class any more.)

Sometimes people encounter issues like this because they have an out-of-date gacced copy of the assembly. Otherwise I guess it is going to be a more straightforward type or assembly loading issue - based on missing assembly references, or similar.

Tim


这篇关于由于XAML中的错误,无法加载活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆