-
Type: Bug
-
Status: Done
-
Priority: High
-
Resolution: Done
-
Labels:
2023-01-23 12:00:35.2951|Error|GLOBAL ERROR HANDLER::HTTP:InternalServerError::The process cannot access the file 'C:\Apps\Logs\OneHubApi\audit\2023-01-23\TTS.ApproveVehicleRequest\api.internal.core_2023-01-23_12-00-35.txt' because it is being used by another process.
2023-01-23 12:01:17.6563|Error|An unhandled exception has occurred while executing the request.
System.IO.IOException: The process cannot access the file 'C:\Apps\Logs\OneHubApi\audit\2023-01-23\PraticCard.GiftCardCreateOrder\api.internal.core_2023-01-23_12-01-17.txt' because it is being used by another process.
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at Audit.Core.Providers.FileDataProvider.SaveFileAsync(String fullPath, AuditEvent auditEvent)
at Audit.Core.Providers.FileDataProvider.InsertEventAsync(AuditEvent auditEvent)
at Audit.Core.AuditScope.SaveEventAsync(Boolean forceInsert)