[DateStamper] Exception occurred while processing file D:\App-Data\iis\api-qa-staging.oqsha.com\api-qa-staging.oqsha.com\attachments\211\inspections\image_1784780629774_2026-07-23_04-23-51-2351_0858c479-2700-4f62-b2eb-0067ce89c830.jpeg: System.TypeInitializationException: The type initializer for 'NativeMagickSettings' threw an exception. ---> System.TypeInitializationException: The type initializer for 'X64' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'Magick.Native-Q16-x64.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at ImageMagick.Environment.NativeMethods.X64.Environment_SetEnv(IntPtr name, IntPtr value)
   at ImageMagick.Environment.NativeEnvironment.SetEnv(String name, String value)
   at ImageMagick.MagickNET.InitializeConfiguration(ConfigurationFiles configFiles, String newPath)
   at ImageMagick.Environment.NativeMethods.X64..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.Environment.NativeMethods.X64.Environment_Initialize()
   at ImageMagick.Environment.Initialize()
   at ImageMagick.MagickSettings.NativeMagickSettings..cctor()
   --- End of inner exception stack trace ---
   at ImageMagick.MagickSettings.NativeMagickSettings..ctor()
   at ImageMagick.MagickSettings..ctor()
   at ImageMagick.MagickImage..ctor()
   at IncidentReporter.API.Helpers.DateStamperHelper.AddTimestampToImage(String inputFilePath) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\DateStamperHelper.cs:line 19

*** MULTIPART FORM DATA / FILE UPLOAD (OMITTED FOR LOGGING) ***


Unhandled Exception in Web API

System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()


Error occurred while Whatsapp message.

System.Exception: Error occurred while Whatsapp message. ---> System.Net.WebException: The remote server returned an error: (403) Forbidden.
   at System.Net.HttpWebRequest.GetResponse()
   at IncidentReporter.API.BLL.UsersBLL.SendMessage(String apiBody) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\UsersBLL.cs:line 261
   --- End of inner exception stack trace ---


Unhandled Exception in Web API


System.Exception: No company associated with the given organisation and user.


Unhandled Exception in Web Application

System.Web.HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (:).
   at System.Web.HttpRequest.ValidateInputIfRequiredByConfig()
   at System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context)


Unhandled Exception in Web Application


System.Exception: User details not found for the given user and organisation.


Unhandled Exception in Web API

System.OperationCanceledException: The operation was canceled.
   at System.Threading.CancellationToken.ThrowOperationCanceledException()
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Web.Http.Filters.ActionFilterAttribute.<CallOnActionExecutedAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Filters.ActionFilterAttribute.<ExecuteActionFilterAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()


Unhandled Exception in Web Application

System.Web.HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (&).
   at System.Web.HttpRequest.ValidateInputIfRequiredByConfig()
   at System.Web.HttpApplication.PipelineStepManager.ValidateHelper(HttpContext context)


Error occurred while Whatsapp message.


Error occurred while Whatsapp message.

Mention country code in proper format like "+91"


Failed to send audit log: BadRequest
Request Payload: {"EntityTypeId":43,"EntityId":264,"ChangedBy":{"UserId":267,"Name":null},"ChangeType":"Updated","OldValue":{"OrganisationId":"5682F8","OrganisationName":"Neveu","OrganisationType":"Warehouse","Packages":[{"PackageId":1,"InvoiceId":425,"StartDate":"2026-03-30T00:00:00","EndDate":"2027-06-28T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":null}],"EnabledPayments":"No","EnableSMSNotifications":"No","EnableCallOut":"No","OrganisationModules":{"Action Trackers IsVisible":1,"Appointments IsVisible":0,"Areas IsVisible":0,"Assets IsVisible":0,"Attendance IsVisible":0,"Audit Management IsVisible":1,"Audit V2 IsVisible":0,"Breakdown Maintenance IsVisible":0,"Bulk Export IsVisible":0,"Companies IsVisible":1,"Consequence Management IsVisible":0,"Courses IsVisible":1,"Customer Complaints IsVisible":0,"Dashboard IsVisible":1,"Dashboard V2 IsVisible":1,"Departments IsVisible":1,"Employee Recognition IsVisible":0,"Environment Management IsVisible":0,"Esg IsVisible":0,"FIR IsVisible":1,"Health IsVisible":0,"Health V2 IsVisible":0,"Heatmap IsVisible":0,"HIRA IsVisible":0,"HIRA V2 IsVisible":0,"Incident Management IsVisible":0,"Inspection V2 IsVisible":0,"Inspections IsVisible":0,"Inventory IsVisible":0,"Investigations IsVisible":1,"IoT Device Types IsVisible":0,"IoT Devices IsVisible":0,"Kiken Yochi Training IsVisible":1,"KPI IsVisible":0,"Library IsVisible":0,"Library V2 IsVisible":1,"MOC IsVisible":0,"Moc V2 IsVisible":0,"My training IsVisible":1,"Nominations IsVisible":1,"Notifications IsVisible":0,"Oqo Chatbot IsVisible":0,"Organisations IsVisible":1,"OsmoVision IsVisible":0,"Periodic Health Checkup IsVisible":0,"Permit to work IsVisible":0,"PMC V2 IsVisible":0,"PPE Issuance IsVisible":0,"Pre Startup Safety Review IsVisible":0,"Precast IsVisible":0,"Preventive Maintenance IsVisible":0,"Processes IsVisible":0,"Projects IsVisible":0,"PSSR IsVisible":0,"Quality Management IsVisible":0,"r4 IsVisible":0,"r5 IsVisible":0,"r6 IsVisible":0,"Reports IsVisible":0,"Roles IsVisible":1,"Safety Alerts IsVisible":1,"Safety Kaizen IsVisible":0,"Safety Kaizen V2 IsVisible":0,"Sections IsVisible":1,"Setup IsVisible":1,"Sites IsVisible":1,"Support IsVisible":0,"Tasks IsVisible":0,"Tickets IsVisible":0,"TNI IsVisible":1,"TNI Progress IsVisible":1,"TNI V2 IsVisible":0,"Toolbox Talk IsVisible":1,"Training register IsVisible":1,"Training report IsVisible":1,"Users IsVisible":1,"Visitor Management IsVisible":0,"Work Permit IsVisible":0,"Work Permit V2 IsVisible":1,"Zones IsVisible":0},"PtwPreferences":null},"NewValue":{"OrganisationId":"5682F8","OrganisationName":"Neveu","OrganisationType":"Warehouse","Packages":[{"PackageId":1,"InvoiceId":425,"StartDate":"2026-03-30T00:00:00","EndDate":"2027-06-28T00:00:00","OrganisationId":null,"IsActive":null,"CreatedOn":"0001-01-01T00:00:00","ModifiedOn":"0001-01-01T00:00:00","Comments":null}],"EnabledPayments":"No","EnableSMSNotifications":"No","EnableCallOut":"No","OrganisationModules":{"Action Trackers IsVisible":1,"Appointments IsVisible":0,"Areas IsVisible":0,"Assets IsVisible":0,"Attendance IsVisible":0,"Audit Management IsVisible":1,"Audit V2 IsVisible":0,"Breakdown Maintenance IsVisible":0,"Bulk Export IsVisible":0,"Companies IsVisible":1,"Consequence Management IsVisible":0,"Courses IsVisible":1,"Customer Complaints IsVisible":0,"Dashboard IsVisible":1,"Dashboard V2 IsVisible":1,"Departments IsVisible":1,"Employee Recognition IsVisible":0,"Environment Management IsVisible":0,"Esg IsVisible":0,"FIR IsVisible":1,"Health IsVisible":0,"Health V2 IsVisible":0,"Heatmap IsVisible":0,"HIRA IsVisible":0,"HIRA V2 IsVisible":0,"Incident Management IsVisible":0,"Inspection V2 IsVisible":0,"Inspections IsVisible":0,"Inventory IsVisible":0,"Investigations IsVisible":1,"IoT Device Types IsVisible":0,"IoT Devices IsVisible":0,"Kiken Yochi Training IsVisible":1,"KPI IsVisible":0,"Library IsVisible":0,"Library V2 IsVisible":1,"MOC IsVisible":0,"Moc V2 IsVisible":0,"My training IsVisible":1,"Nominations IsVisible":1,"Notifications IsVisible":0,"Oqo Chatbot IsVisible":0,"Organisations IsVisible":1,"OsmoVision IsVisible":0,"Periodic Health Checkup IsVisible":0,"Permit to work IsVisible":0,"PMC V2 IsVisible":0,"PPE Issuance IsVisible":0,"Pre Startup Safety Review IsVisible":0,"Precast IsVisible":0,"Preventive Maintenance IsVisible":0,"Processes IsVisible":0,"Projects IsVisible":0,"PSSR IsVisible":0,"Quality Management IsVisible":0,"r4 IsVisible":0,"r5 IsVisible":0,"r6 IsVisible":0,"Reports IsVisible":0,"Roles IsVisible":1,"Safety Alerts IsVisible":1,"Safety Kaizen IsVisible":0,"Safety Kaizen V2 IsVisible":0,"Sections IsVisible":1,"Setup IsVisible":1,"Sites IsVisible":1,"Support IsVisible":0,"Tasks IsVisible":0,"Tickets IsVisible":0,"TNI IsVisible":1,"TNI Progress IsVisible":1,"TNI V2 IsVisible":0,"Toolbox Talk IsVisible":1,"Training register IsVisible":1,"Training report IsVisible":1,"Users IsVisible":1,"Visitor Management IsVisible":0,"Work Permit IsVisible":0,"Work Permit V2 IsVisible":1,"Zones IsVisible":0},"PtwPreferences":null}}
API Response: {"type":"https://tools.ietf.org/html/rfc9110#section-15.5.1","title":"One or more validation errors occurred.","status":400,"errors":{"ChangedBy.Name":["The Name field is required."]},"traceId":"00-78fde6d5b101dfb6c911f17c06fef260-ea3edd37f98317b4-00"}


Unhandled Exception in Web Application

System.Web.HttpException (0x80004005): The service '/Service.svc' does not exist. ---> System.ServiceModel.EndpointNotFoundException: The service '/Service.svc' does not exist.
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
   at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath, EventTraceActivity eventTraceActivity)
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
   at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)
   at System.ServiceModel.Activation.ServiceHttpModule.EndProcessRequest(IAsyncResult ar)
   at System.Web.HttpApplication.AsyncEventExecutionStep.InvokeEndHandler(IAsyncResult ar)
   at System.Web.HttpApplication.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar)


Unhandled Exception in Web Application

System.Web.HttpException (0x80004005): The service '/Services/Service.svc' does not exist. ---> System.ServiceModel.EndpointNotFoundException: The service '/Services/Service.svc' does not exist.
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
   at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath, EventTraceActivity eventTraceActivity)
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
   at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)
   at System.ServiceModel.Activation.ServiceHttpModule.EndProcessRequest(IAsyncResult ar)
   at System.Web.HttpApplication.AsyncEventExecutionStep.InvokeEndHandler(IAsyncResult ar)
   at System.Web.HttpApplication.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar)


Unhandled Exception in Web Application

System.Web.HttpException (0x80004005): The service '/AdminService.svc' does not exist. ---> System.ServiceModel.EndpointNotFoundException: The service '/AdminService.svc' does not exist.
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
   at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath, EventTraceActivity eventTraceActivity)
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
   at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)
   at System.ServiceModel.Activation.ServiceHttpModule.EndProcessRequest(IAsyncResult ar)
   at System.Web.HttpApplication.AsyncEventExecutionStep.InvokeEndHandler(IAsyncResult ar)
   at System.Web.HttpApplication.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar)


Unhandled Exception in Web Application

System.Web.HttpException (0x80004005): The service '/api/Service.svc' does not exist. ---> System.ServiceModel.EndpointNotFoundException: The service '/api/Service.svc' does not exist.
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
   at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath, EventTraceActivity eventTraceActivity)
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
   at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result)
   at System.ServiceModel.Activation.ServiceHttpModule.EndProcessRequest(IAsyncResult ar)
   at System.Web.HttpApplication.AsyncEventExecutionStep.InvokeEndHandler(IAsyncResult ar)
   at System.Web.HttpApplication.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar)