Açıklama
Yaratılan PDF dosyası büyük olduğu zaman aşağıdaki gibi hatalar alınabilir. Bu durumda timeout süresini arttırabilirsiniz.
Unhandled exception occured while completing job. System.IO.IOException: The process cannot access the file 'C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\q4mkwtiz.tr3\ocfdrhwp.pdf' because it is being used by another process. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.File.InternalReadAllBytes(String path, Boolean checkHost) at AltiKare.Workflow.Business.Server.Logic.PdfConverter.ToPdf() at AltiKare.Workflow.Business.Server.Logic.Scripts.DocumentFilesProxy.AddPDF(String htmlContent, String name, ObjectInstance options) at binder_for_AltiKare.Workflow.Business.Server.Logic.Scripts.DocumentFilesProxy.AddPDF(ScriptEngine , Object , Object[] ) at Jurassic.Compiler.Binder.Call(ScriptEngine engine, Object thisObject, Object[] arguments) at Jurassic.Library.ClrFunction.CallLateBound(Object thisObject, Object[] arguments) at eval(ScriptEngine , Scope , Object ) at Jurassic.Compiler.EvalMethodGenerator.Execute() at Jurassic.ScriptEngine.Evaluate(ScriptSource source) at AltiKare.Scripting.Execution.ScriptContext.Run(ScriptEngine engine, String code) at AltiKare.Workflow.Business.Server.Logic.WorkItem.RunPostwork() at AltiKare.Workflow.Business.Server.Logic.WorkItem.Process() at AltiKare.Workflow.Business.Server.Logic.Workers.WorkItemProcess.CompleteCore() at AltiKare.Workers.Worker.<>c__DisplayClass17_0.<Complete>b__0()
Çözüm
Aşağıdaki gibi 6Kare\AltiKare\configuration dizinindeki workflow.config dosyasına pdfConversionTimeout parametresi eklenerek istenilen değer verilir. Default değer 15'tir.
<workflow> <applications> <add name="tarsim.gov.tr" staticUrl="static.tarsim.gov.tr" systemAdmin="destek@vbase.com.tr" connectionName="global" reservedDomains="" useSSL="true" pdfConversionTimeout="30"> . . . </workflow>