Description
You see this error message when the map service is down or not accessible for some reason.
Solution
Make sure you can stop and restart the map service correctly. It is also a good practice to examine server log files for any errors. The log files are located at <ArcGIS Server Installation directory>\server\user\log on the server object manager (SOM) machine.