Error Code 499, Token required

24428
14
03-18-2014 04:58 AM
JulieBiju
Occasional Contributor
Hi All,

In my web application I am loading map successfully . But now a days I am facing a problem with the error below

Error Code 499, Token required

How can I solve this.?From Where I will get Token and In the below code how to apply?

<esri:ArcGISDynamicMapServiceLayer ID="StreLayer" Url="http://www.mapping Link here/MapServer"/>
            <esri:ArcGISDynamicMapServiceLayer ID="AraLayer" Url="http://www.mapping Link here/MapServer" />
0 Kudos
14 Replies
DominiqueBroux
Esri Frequent Contributor
This means that your service is secured and you need to login before accessing to the service.

You have to use the IdentityManager. Two options:
   - challenge the user for username/password. The easiest way is to use the toolkit SiginDialog (see interactive SDK SignInDialog sample)
   - generate a token for a predefined username/password using GenerateCredentialAsync and then add the credential to IM.
JamieThompson2
New Contributor III

This was very helpful!

0 Kudos
JulieBiju
Occasional Contributor
Thanks a lot for ur help.
I Am using our service before 1 year back onwards. But Now only I am facing ths error.
I want to avoid login screen from my customers. How can I do that?In the coding can I use Username and passowrd?


This means that your service is secured and you need to login before accessing to the service.

You have to use the IdentityManager. Two options:
   - challenge the user for username/password. The easiest way is to use the toolkit SiginDialog (see interactive SDK SignInDialog sample)
   - generate a token for a predefined username/password using GenerateCredentialAsync and then add the credential to IM.
0 Kudos
JulieBiju
Occasional Contributor
Thanks a lot for ur help.
I Am using our service before 1 year back onwards. But Now only I am facing ths error.
I want to avoid login screen from my customers. How can I do that?In the coding can I use Username and passowrd?

I think Some security settings automaticaly changed from public to Private. How can I change that?


This means that your service is secured and you need to login before accessing to the service.

You have to use the IdentityManager. Two options:
   - challenge the user for username/password. The easiest way is to use the toolkit SiginDialog (see interactive SDK SignInDialog sample)
   - generate a token for a predefined username/password using GenerateCredentialAsync and then add the credential to IM.
0 Kudos
JulieBiju
Occasional Contributor
Can anybdy help me Pls...
I am wondered Y this error happened suddenly.

Without changing the code ,Is it possible to solve the issue...
0 Kudos
DominiqueBroux
Esri Frequent Contributor
Can anybdy help me Pls...
I am wondered Y this error happened suddenly.

Without changing the code ,Is it possible to solve the issue...


As your services are no more working without any clear explanations, first thing is to check that the issue is effectively coming from a secured service.

Try to access to the service using a browser and check if you need to login to access to it.
0 Kudos
JulieBiju
Occasional Contributor
Yes. When I use the browser for accesing my service(http://sitename:8000/arcgis/rest/services/..../ServiceName/MapServer) ,It is showing ArcGIS Server REST API Login screen
But Pls note recently only It is asking for Login. Till two weeks back when I access the service ,It was not ask for login.

I didnt made any changes in the ESRI services Or Not did any setting changes in ESRI 10.01 Server.Only Windows update doing in the server system.

Need Help Pls

As your services are no more working without any clear explanations, first thing is to check that the issue is effectively coming from a secured service.

Try to access to the service using a browser and check if you need to login to access to it.
0 Kudos
DominiqueBroux
Esri Frequent Contributor

But Pls note recently only It is asking for Login. Till two weeks back when I access the service ,It was not ask for login.
I didnt made any changes in the ESRI services Or Not did any setting changes in ESRI 10.01 Server.Only Windows update doing in the server system.

If the secured service is not expected, you should contact your server administrator to come back to a non secured service.
Anyway the issue is coming from the server side and not from the client side and SL.
0 Kudos
JulieBiju
Occasional Contributor
Thank A lot for ur help dear friend. I have a very less knowledge in this. So let me ask u again.


Shall I contact our hosting company where the arcgis10.01  server and my website is hosted? If The answer is "Yes" What I will ask to them?


If the secured service is not expected, you should contact your server administrator to come back to a non secured service.
Anyway the issue is coming from the server side and not from the client side and SL.
0 Kudos