I have seen this in other systems before, and I am now seeing it in my own system. When trying to access Forms I am taken to an error page. When looking in the Event Viewer in the Admin log for Forms I am seeing the following 2 errors:
Log Name: Laserfiche-Forms-App/Admin
Source: Laserfiche-Forms-App
Date: 10/8/2025 7:00:52 AM
Event ID: 10502
Task Category: UnexpectedErrorErrorAdmin
Level: Error
Keywords: Session0,Session1,Session2,Session3
User: XXXX
Computer: XXXX
Description:
An unexpected error has occurred. [LFF502-UnexpectedError]
Details:
URL:
Error: UnexpectedError
Date: 10/8/2025 7:00:52 AM (US Mountain Standard Time)
HTTP Status Code: 500
Business Process ID: 0
User: XXXX
IP: XXXX
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0
Business Process Name:
Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: An unexpected error has occurred. [LFF502-UnexpectedError]
Inner exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
at E_Forms.MvcApplication.WSFederationAuthenticationModule_SignedIn(Object sender, EventArgs e)
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Laserfiche-Forms-App" Guid="{98141CA4-660B-51C6-66B4-EC37F5B2FD87}" />
<EventID>10502</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>55032</Task>
<Opcode>0</Opcode>
<Keywords>0x4000f00000000000</Keywords>
<TimeCreated SystemTime="2025-10-08T14:00:52.326090300Z" />
<EventRecordID>46588</EventRecordID>
<Correlation />
<Execution ProcessID="4592" ThreadID="5336" />
<Channel>Laserfiche-Forms-App/Admin</Channel>
<Computer>XXXX</Computer>
<Security UserID="XXXX" />
</System>
<EventData>
<Data Name="message">An unexpected error has occurred. [LFF502-UnexpectedError]
Details:
URL:
Error: UnexpectedError
Date: 10/8/2025 7:00:52 AM (US Mountain Standard Time)
HTTP Status Code: 500
Business Process ID: 0
User: XXXX
IP: 10.96.8.10
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0
Business Process Name:
Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: An unexpected error has occurred. [LFF502-UnexpectedError]
Inner exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
at E_Forms.MvcApplication.WSFederationAuthenticationModule_SignedIn(Object sender, EventArgs e)
</Data>
</EventData>
</Event>
AND...
Log Name: Laserfiche-Forms-App/Admin
Source: Laserfiche-Forms-App
Date: 10/8/2025 7:00:52 AM
Event ID: 19904
Task Category: AuditTrailUnableToRecordEventErrorAdmin
Level: Error
Keywords: Session0,Session1,Session2,Session3
User: XXXX
Computer: XXXX
Description:
The audit event could not be recorded. [LFF9904-AuditTrailUnableToRecordEvent]
Details:
URL:
Error: AuditTrailUnableToRecordEvent
Date: 10/8/2025 7:00:52 AM (US Mountain Standard Time)
HTTP Status Code: 500
Business Process ID: 0
User: XXXX
IP: XXXX
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0
Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: The audit event could not be recorded. [LFF9904-AuditTrailUnableToRecordEvent]
Inner exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
at Forms.Auditing.Model.AuditEventType.IsEventRecordEnabled(FormsAuditEvent auditEvent, AuditEventSettings eventTypeSettings)
at Forms.Auditing.Service.FormsAuditingService.RecordFailure[T](T auditEvent, FormsErrorCode errorCode)
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Laserfiche-Forms-App" Guid="{98141CA4-660B-51C6-66B4-EC37F5B2FD87}" />
<EventID>19904</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>45630</Task>
<Opcode>0</Opcode>
<Keywords>0x4000f00000000000</Keywords>
<TimeCreated SystemTime="2025-10-08T14:00:52.327218500Z" />
<EventRecordID>46589</EventRecordID>
<Correlation />
<Execution ProcessID="4592" ThreadID="5336" />
<Channel>Laserfiche-Forms-App/Admin</Channel>
<Computer>XXXX</Computer>
<Security UserID="XXXX" />
</System>
<EventData>
<Data Name="message">The audit event could not be recorded. [LFF9904-AuditTrailUnableToRecordEvent]
Details:
URL:
Error: AuditTrailUnableToRecordEvent
Date: 10/8/2025 7:00:52 AM (US Mountain Standard Time)
HTTP Status Code: 500
Business Process ID: 0
User: XXXX
IP: XXXX
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0
Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: The audit event could not be recorded. [LFF9904-AuditTrailUnableToRecordEvent]
Inner exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
at Forms.Auditing.Model.AuditEventType.IsEventRecordEnabled(FormsAuditEvent auditEvent, AuditEventSettings eventTypeSettings)
at Forms.Auditing.Service.FormsAuditingService.RecordFailure[T](T auditEvent, FormsErrorCode errorCode)
</Data>
</EventData>
</Event>
Any idea what causes this error? I have tried to disable auditing in Forms, restart services, etc.