I have some files which will be used in the SOE , i want to keep these files in arcgis server site location so that if arcgis server is clustered all machines have access to the location, but i cant find any api through which i can find the location of arcgis server site.
Solved! Go to Solution.
you can also use rest api admin to get this info http://resources.arcgis.com/en/help/arcgis-rest-api/#/Configuration_Store/02r300000202000000/
if you need folder virtual/output ect.
IMapServer3 mapServer = this.serverObjectHelper.ServerObject as IMapServer3;
IMapServerInit mapServerInit = mapServer as IMapServerInit;
////virtual folder of service output
string pathOutputVirtualAGS = mapServerInit.VirtualOutputDirectory;
////physical folder of service output
string pathOutputAGS = mapServerInit.PhysicalOutputDirectory;
you can also use rest api admin to get this info http://resources.arcgis.com/en/help/arcgis-rest-api/#/Configuration_Store/02r300000202000000/
if you need folder virtual/output ect.
IMapServer3 mapServer = this.serverObjectHelper.ServerObject as IMapServer3;
IMapServerInit mapServerInit = mapServer as IMapServerInit;
////virtual folder of service output
string pathOutputVirtualAGS = mapServerInit.VirtualOutputDirectory;
////physical folder of service output
string pathOutputAGS = mapServerInit.PhysicalOutputDirectory;