rajass01

Unknown Authentication Error while accessing NAServer

Discussion created by rajass01 on Aug 16, 2011
Latest reply on Aug 24, 2011 by rajass01
Hi

I am trying to access a secured NAServer for Route functionality, through iOS APIs. I provided the following information.

AGSCredential *userCredentials = [[AGSCredential alloc] initWithUser:@"UserName" password:@"Password"];
NSURL *routeTaskUrl = [NSURL URLWithString:kRouteTaskUrl];
self.routeTask = [AGSRouteTask routeTaskWithURL:routeTaskUrl credential:userCredentials];

But while trying to access the server for

[self.routeTask retrieveDefaultRouteTaskParameters];

it is giving "Unknown Authentication Error".

The above credentials are working for the NAServer, through a web browser.

Can anyone tell me why this could be happening?

Thanks.

Outcomes