Application crashing on trying to add map layer from ArcGISServer online

Discussion created by sum_chat on Feb 5, 2011
Latest reply on Feb 5, 2011 by sum_chat
I am new to this iOS programming. I have worked with some applications without map. They works fine. But I just started adding a map layer from ArcGISServerOnline following their examples. But my application in the simulator 4.2 crashes with the message "Program received signal SIGABRT" (on debugging) when executing the line marked red below:

- (void)viewDidLoad {
// ----- US highways from ESRI

NSURL *url = [NSURL URLWithString: @""];
//It crashes on executing the line below
AGSDynamicMapServiceLayer *highwayLayer = [AGSDynamicMapServiceLayer dynamicMapServiceLayerWithURL: url];
[self.mapView addMapLayer:highwayLayer withName:@"US Highways"];
[super viewDidLoad];

I will really appreciate if somebody figures out the problem