"The process was terminated due to an unhandled exception". error when applying changes in Project Setup station


When the customer made changes to the project and clicks apply button, the Project Setup Station closes unexpectedly and throws the below error in the event viewer.


Application: FlexiCapture.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ComponentModel.Win32Exception
at Microsoft.Win32.NativeMethods.CreateDirectory(System.String, Microsoft.Win32.SafeHandles.SafeLocalMemHandle)
at System.CodeDom.Compiler.TempFileCollection.CreateTempDirectoryWithAce(System.String, System.String)
at System.CodeDom.Compiler.TempFileCollection.GetTempFileName(System.String)
at System.CodeDom.Compiler.TempFileCollection.EnsureTempNameCreated()
at System.CodeDom.Compiler.TempFileCollection.AddExtension(System.String, Boolean)
at Microsoft.CSharp.CSharpCodeGenerator.FromDomBatch(System.CodeDom.Compiler.CompilerParameters, System.CodeDom.CodeCompileUnit[])
at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromDomBatch(System.CodeDom.Compiler.CompilerParameters, System.CodeDom.CodeCompileUnit[])
at <Module>.DotNetScriptingSupport.CDomain.CompileProcedure(DotNetScriptingSupport.CDomain*, FObj.CUnicodeString*, FObj.CUnicodeString*, DotNetScriptingSupport.ICompilerParams*, FObj.CArray<DotNetScriptingSupport::CCompilerError,FObj::CurrentMemoryManager>*)


  1.  There is a knows bug that is fixed in FlexiCapture
  2.  If a newer version is used there might be an issue where FlexiCapture is not able to access the temp folder



  1. If you use a lower version of FlexiCapture than, please update it to the latest build
    You can download the latest build via the link:
  2. In case you already use a version that is higher than, please perform the following:
    1. Navigate to the following path: %LOCALAPPDATA%\Temp
    2. Delete all files located in this folder
    3. Stop all processes inside FlexiCapture (Such as processing batches, import documents etc.)
    4. Restart the machine


Have more questions? Submit a request



Please sign in to leave a comment.