Code cannot be Run, the Compiler Emitted Errors
Project Center - Code cannot be run, the compiler emitted errors
Mar 2, 2022•Knowledge
Title
Code cannot be Run, the Compiler Emitted Errors
URL Name
Code-cannot-be-run-the-compiler-emitted-errors
Version
Newforma Project Center Twelfth Edition
Question
When attempting to open the RFIs activity center (or another activity center), Project Center displays the following error, then crashes with a BugSplat error:
Code cannot be run, the compiler emitted errors
Answer
When the issue occurs for a single user, perform the following steps on the user's workstation:
- Reboot the computer.
- Do not launch Project Center or Outlook.
- Delete the entire folder located at %LOCALAPPDATA%\Newforma\DynamicCode
- Start Newforma Project Center Client.
---------------------------------------------------------------------------------------------------------------------------------------------
When the issue occurs for multiple users (or the issue can be reproduced in the Newforma Client on the Project Center Server), perform the following steps on ALL Project Center servers:
- Login to the Project Center Server as the Newforma service account.
- Stop all Newforma services.
- Close the Newforma Project Center Client, the Newforma Project Center Tray Tool, and Microsoft Outlook.
- Go to Task Manager and close the Newforma - Viewer.exe - process.
- Open a Command Prompt as admin and run the command, IISRESET /STOP. Leave the window open.
- Delete the entire folder located at %LOCALAPPDATA%\Newforma\DynamicCode
- Back in the Command Prompt window, run the command IISRESET and confirm that IIS restarted successfully.
- Start all Newforma services.