Get the arcgis server site location path in arcobject

988
1
Jump to solution
01-03-2017 09:10 AM
Haider_Ali
Occasional Contributor

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.

0 Kudos
1 Solution

Accepted Solutions
nicogis
MVP Frequent Contributor

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;

‍‍‍‍‍‍‍‍‍‍

View solution in original post

1 Reply
nicogis
MVP Frequent Contributor

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;

‍‍‍‍‍‍‍‍‍‍