cybercop001

MapResourceLocal to MapResourceInternet casting

Discussion created by cybercop001 on Jun 7, 2012
Latest reply on Jun 8, 2012 by DSwingley-esristaff
Hi All,

I was trying the ADF samples "Point Buffer Tool" solution. I had used my data layers which are kept on a server and set as ArcGIS Server Internet in the MapResource Manager by giving some intranet location (\\192.*.*.*\****\****.) I had provided same for Point Buffer tool Default page too. Now what I am facing the error of casting of mrl which is defined as a MapReourceLocal variable, from a MapResourceInternet object (mf).


ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.MapResourceLocal mrl;
        mrl = (ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.MapResourceLocal)mf.MapResource;
        ESRI.ArcGIS.Server.IServerContext serverContext = mrl.ServerContextInfo.ServerContext;

What foolishness I am doing or what can be applied to reach the working solution.

Thanks,
Abhy

Outcomes