Hello all,
Lately I've been getting an error with VScode, but no information about what went wrong. Project has no problems, can build properly. This issue even stops me from running hello world projects created by AL GO! I was wondering if anyone has seen this problem before, or if there is any way to access an error log outside of the debug window.
I have noticed that when running a project the debugging tools always pop up, despite me running without the debugger, I am guessing this is a clue to the main issue, but I am unable to diagnose from here what to do.
Thanks!
Thank you, this let me see the error, and I was easily able to solve! No idea why I couldn't see it with F5 (or ctrl F5) But I'll definitely keep this in mind going forward with all of my projects!
Exactly. If you’re on D365BC onpremise also fill the PublicWebBaseUrl (Web Client Base Url) property of your server instance with the correct url of your web client.
As Stefano Demiliani said, after placing ShowMyCode = True in app.json , you may get the real error stating like below.
Reason: NetFx40_LegacySecurityPolicy is enabled and must be turned off in the Microsoft.Dynamics.Nav.Server.exe.config file.
So for resolution for this above error just go to the file mentioned in error and (C:\Program Files\Microsoft Dynamics 365 Business Central\130\Service) set value false for the below parameter.
<NetFx40_LegacySecurityPolicy enabled="false" />
Try to debug by pressing F6 and temporary place showmycode = true in app.json. You should see what is wrong.