Invalid Build property. Specify the custom Media size.

   

The custom media size must be defined. Go to the Build tab of the Project Properties dialog box, and enter the Media size.