I am looking for a way to log all error messages from the NAV Server that contains relevant stack trace information similiar to what is provided in 'GETLASTERRORCALLSTACK'. I've added a trace listener in the Server.exe.config file that is successfully logging all errors from NAV however the stack trace data that comes from it is ambiguous (i.e. ...at Microsoft.Dynamics.Nav.Service.NSService.RunReport(ApplicationMethodRequest applicationMethodRequest)... This should tell me what report was ran just like GETLASTERRORCALLSTACK would but alas this is the only info it provides). Also USER information showing what user ID was used when the error was called would be beneficial too.
Basically we need a way to log relevant error information so when our customers ask us why an error has occured we can quickly diagnose the problem. Obviously it's not feasible to go through every codeunit/form/report/etc to add logic to call GETLASTERRORCALLSTACK and it's also not feasible to use client monitor/etc on a customers server especially when the error could occur at any time.
Is there a way to get this information out of NAV 2009? Any help would be greatly appreciated!
THANKS!
0