level: Error

severity: ERROR

stackTrace:
System.NullReferenceException: Object reference not set to an instance of an object.
   at IncidentReporter.API.Helpers.AttachmentsHelper.IsDateStamperExtension(String extension) in D:\osmosys\oqsha\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\AttachmentsHelper.cs:line 163
   at IncidentReporter.API.Helpers.AttachmentsHelper.SaveAttachment(Attachment attachment, String baseFolder) in D:\osmosys\oqsha\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\AttachmentsHelper.cs:line 98
   at IncidentReporter.API.BLL.IncidentsBLL.UploadMedia(Int32 incidentId) in D:\osmosys\oqsha\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 3050


message: Object reference not set to an instance of an object.


stackTrace:
System.NullReferenceException: Object reference not set to an instance of an object.
   at IncidentReporter.API.Helpers.AttachmentsHelper.IsDateStamperExtension(String extension) in D:\osmosys\oqsha\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\AttachmentsHelper.cs:line 163
   at IncidentReporter.API.Helpers.AttachmentsHelper.SaveAttachment(Attachment attachment, String baseFolder, Int32 orgId) in D:\osmosys\oqsha\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\AttachmentsHelper.cs:line 77
   at IncidentReporter.API.BLL.IncidentsBLL.<UpdateIncident>d__29.MoveNext() in D:\osmosys\oqsha\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 2762


message: The file path you provided is not Valid

stackTrace:
System.Exception: The file path you provided is not Valid
   at DocumentService.Pdf.PdfDocumentGenerator.GeneratePdfByTemplate(String toolFolderAbsolutePath, String templatePath, List`1 metaDataList, String outputFilePath)
   at IncidentReporter.API.Helpers.ExportIncidentPDFHelper.ExportIncidentPDF(IncidentDBO incident, String organisationBannerRelativePath, String outputAbsoluteFilePath, String ticketModuleCustomName, Boolean enableReportedByType) in D:\osmosys\oqsha\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\ExportIncidentPDFHelper.cs:line 620


stackTrace:
System.IO.FileNotFoundException: Could not find file 'D:\App-Data\iis\devapi.incidentreporter365.com\devapi.oqsha.com\attachments\temp\OQSHA_Ticket_H5LK9H.pdf'.
File name: 'D:\App-Data\iis\devapi.incidentreporter365.com\devapi.oqsha.com\attachments\temp\OQSHA_Ticket_H5LK9H.pdf'
   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 IncidentReporter.API.Helpers.ExportIncidentPDFHelper.ExportIncidentPDFAsByteArray(IncidentDBO incident, String organisationBannerRelativePath, String ticketModuleCustomName, Boolean enableReportedByType) in D:\osmosys\oqsha\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\ExportIncidentPDFHelper.cs:line 637
   at IncidentReporter.API.BLL.IncidentsBLL.<SendNewIncidentStatusUpdateEmail>d__47.MoveNext() in D:\osmosys\oqsha\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\IncidentsBLL.cs:line 3778
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Web.Util.SynchronizationHelper.SafeWrapCallback(Action action)