I encountered a weird phenomenon on my ArcGIS Server 10.1.
I have a geoprocessing tool that exports a mxd file to an image file on my local directory, say "c://map/dir/export/image.png" It worked well. Then I published it as geoprocessing service on ArcGIS Server 10.1. When I ran it, it still worked but the image file was generated but stored as "export" in "c://map/". This file had no extension.
Additionally, "c://map/dir/export/" was set up as a virtual directory on the IIS so that it can be accessed through web browser whenever updated.
Any idea about a solution?
In my code, I have the following snippet.
prodWebServerGCPath = "C://arcgisserver/map/GC/GrasslandCuringVD"
arcpy.AddMessage("* prodWebServerGCPath: " + prodWebServerGCPath)
When run as geoprocessing, it strangely printed out as part of GP result:
{
"type": "esriJobMessageTypeInformative",
"description": "* prodWebServerGCPath: ..\\grasslandcuringvd"
}
I don't have any data stores set up in ArcGIServer Manager. It happened even if I removed the virtual directory from IIS.