The azimuth must be between 0 and 360 degrees.

Code:-2147221311 (800400C1 hex)
Source:Prefs class
Description:Call to Prefs.GetHorizon method with a bad azimuth parameter. The azimuth must be between 0 and 360 degrees.