Today I faced this issue, when I deployed latest code on one box. Code is fully compiled. On opening browser, I found following error.
Solution. Build model “Application foundation” and your custom model. After that do db sync.
A practitioner’s musings on Dynamics 365 Finance and Operations