关联工作流程<工作流程名称>编译有错误| System.IO.FileNotFoundException [英] Workflow on association <workflow name> compile had errors | System.IO.FileNotFoundException

查看:91
本文介绍了关联工作流程<工作流程名称>编译有错误| System.IO.FileNotFoundException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿!我们目前正面临批准工作流程中偶尔出现的错误。工作流程获得状态错误,并在详细的
概述中得到错误

"执行时出错"来自系统帐户。在日志中,我们发现以下内容:关联'<工作流名称>'编译
的工作流有错误:<错误>< CompilerError Line =" -1"柱= QUOT; -1" Text ="编译失败。找不到文件C:\ Users \ ***** \ AppData \ Local \Temp \ess5rdav \ xoml.36a79492_ba45_4d28_b7ba_e7fee2be ***** 80.23.20480.dll'。" />< /错误>

[...]

RunWorkflow:System.IO.FileNotFoundException:找不到文件'C:\ Users \ ******* \ AppData\Local\Temp\a0ab04f4-E2EE-4913-b619-096 **** d8\Xoml.36a79492_ba45_4d28_b7ba_e7fee2 ***** 22.20480.23.20480.dll"。
文件名:'C:\ Users \ ******* \ AppData \ Local \Temp \ a0ab04f4-e2ee-4913-b619-09 *** 8 \ Xoml。 36a79492_ba45_4d28_b7ba_e7fee2be ****** System.IO.FileStream.Init上的System.IO .__ Error.WinIOError(Int32 errorCode,String maybeFullPath)80.23.20480.dll'(字符串路径,FileMode
模式,FileAccess访问,在System.IO.FileStream..ctor中使用Int32权限,布尔值useRights,FileShare共享,Int32 bufferSize,FileOptions选项,SECURITY_ATTRIBUTES secAttrs,String msgPath,Boolean bFromProxy,Boolean useLongPath,Boolean checkHost(String
path,FileMode mode, FileAccess访问,FileShare共享,Int32 bufferSize,FileOptions选项,String msgPath,Boolean bFromProxy,Boolean useLongPath,Boolean checkHost)at System.IO.File.InternalReadAllBytes(String path,Boolean checkHost)at Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler。< > c__DisplayClass8。< CompileBytes> b__1()
at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToR unElevated secureCode)at Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.LoadXomlAssembly的Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.CompileBytes(Byte [] xomlBytes,Byte [] rulesBytes,Boolean doTestCompilation,String assemblyName,SPWeb web,
Boolean forceNewAppDomain) Microsoft.SharePoint.Workflow.SPWinOeEngine上的Microsoft.SharePoint.Workflow.SPWinOeHostServices.CreateInstance(SPWorkflow工作流)中的Microsoft.SharePoint.Workflow.SPWinOeHostServices.LoadDeclarativeAssembly(SPWorkflowAssociation association,
Boolean fallback)上的(SPWorkflowAssociation association,SPWeb web) .RunWorkflow(SPWorkflowHostService主机,SPWorkflow工作流,Collection`1事件,TimeSpan timeOut)
Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflowElev(SPWorkflow工作流,Collection`1事件,SPWorkflowRunOptionsInternal runOptions)

任何建议,帮助或想法赞赏!

亲切的问候,Tim

Kind regards, Tim

推荐答案

嗨Tim,

您使用的平台类型是什么,SharePoint 2010工作流平台或SharePoint 2013工作流平台?

What’s the type of platform you used, SharePoint 2010 workflow platform or SharePoint 2013 workflow platform?

是否使用系统帐户启动如果是这样,请切换到另一个帐户并再次检查。

Whether you use system account to start the workflow? If so, switch to another account and check again.

尝试在"C:\Users \< service-acct> \ AppData \下创建一个文本文件Local\Temp"路径并提供对文件的只读访问权限以阻止进程删除临时文件夹。详细信息请查看文章:

Try to Create a text file under "C:\Users\<service-acct>\AppData\Local\Temp" path and provide read only access to file to stop process from deleting temp folder. Detailed information check the article:

SharePoint Designer 2013:关联工作流的服务器上出现意外的
错误


SharePoint Designer 2013: Unexpected Error on server associating the workflow

祝你好运,

Grace Wang

Grace Wang


这篇关于关联工作流程&lt;工作流程名称&gt;编译有错误| System.IO.FileNotFoundException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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