When sending out an iOS configuration profile with the 'Global HTTP Proxy' defined, the task fails with the error:
An MDM command could not be executed - Error code -45
Pressing the info button to see additional details about the error shows the following description:
 [MCSupervisedErrorDomain] This profile can only be installed on a Supervised device.
First seen in
Sophos Mobile Control 3.5
The device that you are attempting to transfer the profile to is not supervised using the 'Apple Configurator'.
What To Do
To successfully deploy a profile with the 'Global HTTP Proxy' configured, it is necessary that the device is in the 'supervised' status. This can be done by using the software 'Apple Configurator' which is available for Apple Mac computers in the Apple App Store.
For further information about the Apple Configurator see: Apple Configurator.