<-- Back

System.NullReferenceException: Object reference not set to an instance of an object

Issue

When trying to run a project in Studio Pro, it fails, and an exception resembling the following is generated:

System.NullReferenceException: Object reference not set to an instance of an object.
at Mendix.Modeler.Deployment.CoreMetadataWriter.WriteMetadataProperties(lProject project, JsonWriter writer) in Mendix.Modeler.Deployment\CoreMetadataWriter.cs:line 55

Environment

Studio Pro (all versions)

Cause

When the MxAdmin user does not have an administrator user role associated with it, this null reference exception is thrown.

Solution/Workaround

To resolve this issue, ensure that the MxAdmin user has an admin user role associated with it:

  1. Navigate to App Security > Administrator tab.
  2. Change the User role property to a user role with the System.Administrator role (refer to our Administrator documentation for more information)

Internal information related

  • 241897
  • C0A5EDRD2/p1740666114855699

Additional information 

Have more questions? Submit a request

0 Comments

Article is closed for comments.

To provide feedback, please open a ticket here. Don't forget to include the article's URL along with the feedback you would like to provide.