I am trying to use a map service created on a local machine with one from esri and I get a Error code 4004 when testing the app. Here is the code that it is hanging up on:
Not sure why the local service would be bombing out as I am able to communicate both ways with the server, post and read map services in ArcMap and see the REST endpoint in a web browser.