Please could you share the code?
dear rburk;366957 thank you to reply, my problem has been solved i suddenly find out that the map i published was dynamic not tile cache while i was using ArcGISTiledMapServiceLayer . i changed my map service to tile cache and every thing is ok now regards