Code cannot be Run, the Compiler Emitted Errors

Project Center - Code cannot be run, the compiler emitted errors

Mar 2, 2022Knowledge

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:

  1. Reboot the computer.
  2. Do not launch Project Center or Outlook.
  3. Delete the entire folder located at %LOCALAPPDATA%\Newforma\DynamicCode
  4. Start Newforma Project Center Client.
Upon launch of the Newforma Project Center Client the dynamic code files will be repopulated in the new DynamicCode folder.

---------------------------------------------------------------------------------------------------------------------------------------------

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:

  1. Login to the Project Center Server as the Newforma service account.
  2. Stop all Newforma services.
  3. Close the Newforma Project Center Client, the Newforma Project Center Tray Tool, and Microsoft Outlook.
  4. Go to Task Manager and close the Newforma - Viewer.exe - process.
  5. Open a Command Prompt as admin and run the command, IISRESET /STOP. Leave the window open.
  6. Delete the entire folder located at %LOCALAPPDATA%\Newforma\DynamicCode
  7. Back in the Command Prompt window, run the command IISRESET and confirm that IIS restarted successfully.
  8. Start all Newforma services.