Does anyone know if it is possible to refresh an ArcIMS service with ArcObjects and if so do you have a nice code snippet? :)

I think it might have something to do with interface IIMSAxlRequest - but not sure how to use it...

1 Answer 1


No you can't use ArcObjects.

Your best bet is too just restart the ArcIMS services. Simply doing a refresh like you would in the admin console may not refresh any fields that have been added or removed from the map service. Only a restart of the services will guarantee that.

You could script the restart with a batch file.

net stop "ArcIMS Tasker 10.0.0"
net stop "ArcIMS Monitor 10.0.0"
net stop "ArcIMS Application Server 10.0.0"
net start "ArcIMS Application Server 10.0.0"
net start "ArcIMS Monitor 10.0.0"
net start "ArcIMS Tasker 10.0.0"

You could also remove the map service and add it back in if you don't want to take down ArcIMS Services.

  • How annoying is that! - It would have been so nice to have some simple method you could call instead of resorting to clunky command line commands from code. Grrr. But thanks for confirming things there.
    – Vidar
    Jun 24, 2011 at 9:22
  • Yes its one of the major annoyances of ArcIMS. I actually have an instance of ArcIMS with over a hundred services that get torn down and rebuilt every night. Just make sure the newest fields are in there.
    – Donny V.
    Jun 27, 2011 at 19:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.