title: iPhone locationManager:didFailWithError problem when GPS disabled
body: <p>So, I've followed other related threads, but for some reason I'm still having this error and I'm about ready to tear my hair out.  I have implemented locationManager:didFailWithError to check and see if a user selects 'Don't Allow' to use the current location.</p>
  
  <pre><code>-(void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error {
  NSLog(@"IN ERROR");
  if ([error code] == kCLErrorDenied){  
   [manager stopUpdatingLocation];
   }
  }
  </code></pre>
  
  <p>However, the following error always appears when the user selects 'Don't Allow'...it's strange, especially the order that the text 'IN ERROR' appears.  </p>
  
  <blockquote>
    <p>ERROR,Time,293420691.000,Function,"void
    CLClientHandleDaemonDataRegistration(__CLClient*,
    const
    CLDaemonCommToClientRegistration*,
    const __CFDictionary*)",server did not
    accept client registration 1
    2010-04-19 21:44:51.000
    testApp[1414:207] IN ERROR</p>
  </blockquote>
  
  <p>So, it's outputting this error even before it has a chance to get into the didFailWithError function.  Does anyone have any ideas of what might be happening?  The rest of the locationManager code is as follows:</p>
  
  <pre><code>self.locationManager = [[[CLLocationManager alloc] init] autorelease];
  locationManager.delegate = self;
  locationManager.desiredAccuracy = kCLLocationAccuracyKilometer;
  locationManager.distanceFilter = 2;  
  [locationManager startUpdatingLocation];
  </code></pre>