Kentico API errors

Selva Pandi asked on January 9, 2023 04:51

Hi Team

can some one please shed some light here? we are getting below exceptions from kentico API when there are concurrent requests triggered from the source? We thought it has to do with the log files and so we cleaned up all the old files, but the issue still seems to happen.

Message: The process cannot access the file 'E:\Kentico\api\webcalc\zlog\Request_20221216110049.xml' because it is being used by another process. Stack Trace: 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.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost) at API.WebCalc.Handler.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Recent Answers


Juraj Ondrus answered on January 9, 2023 11:01

How is this related to Kentico? It looks like there is some custom API.WebCalc class and you need to debug your code. Or, ensure it can handle multiple requests at the same time.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.