STAF Trust Level 4 required for FS copy request

C#中使用STAF从本机传输文件到远程的电脑,出现如下错误:

解决方法:

修改service.ini文件,添加信任IP段,并将trust level 设置为5,修改后文件内容如下

trace enable tracepoints "error deprecated"
interface tcp library ATFTCP
trust machine local://local level 5
TRUST LEVEL 5 MACHINE 172.52.150.*

serviceloader library ATFDSLS

posted @ 2016-09-22 10:24  ttssrs  阅读(387)  评论(0编辑  收藏  举报