Agent调用Script Libraries出现无法识别自定义类问题

来源:互联网 发布:普元数据质量管理平台 编辑:程序博客网 时间:2024/06/06 14:37

在Script Libraries中新建一个Class Example,若在Agent中需要调用此类中的方法,需要执行"Dim exa as New Example",若出现无法识别Example情况,可以考虑是Agent的运行时安全级别造成的:

Agent Runtime Security Level 有3种:

1. Do not allow restricted operations(不允许受限制操作)

2. Allow restricted operations(允许受限制操作)

3. Allow restricted operations with full administration(以完全管理允许受限制操作)

将Agent Runtime Security Level设置为3即可解决上面问题。

 

如果还是出现这个问题,在该Script Libraries代码内敲几个空格,然后保存。对Agent也进行一样操作,这样可以重新编译该类。

原创粉丝点击