Acumatica has very powerful feature to catch and logging all exceptions that that has been thrown inside the system and application code. You are able to activate it in the Application Settings section of web.config file.
<add key="EnableFirstChanceExceptionsLogging" value="false" /> <add key="FirstChanceExceptionsLogFileName" value="firstchanceexceptions.log" />
If you do not change the file name, it will be available by this path: “<SiteFolder>App_Datafirstchanceexceptions.log”
This log can help a lot if you get any error without stack trace, or when you getting any problem without any information in the UI. Also this log can be very useful for Acumatica support team.
You need to understand that using this mechanism you will catch all exception even good and handled ones. Because of this system will fill this log file quite fast, so i recommend you to enable it only for short periods of time, where you are investigation the issue.
Starting from Acumatica 5.2 you also can enable if from user interface.
Have a nice troubleshooting.
2 Replies to “First Chance Exception Log in Acumatica”
I am using Acumatica 2020 R1.
In my application, I am getting ‘Access to Message Queuing system is denied.’ instead of exact error or exception.
Please suggest something in order to resolve my issue.
Thanks & Regards,
Gaurav, this message means that something wrong with MSMQ that are needed fro Acumatica.
Make sure that MSMQ service is running on the local computer
I recommend you to restart server and re-install Acumatica.