IServerObject so = this.serverObjectHelper.ServerObject; IMapServerObjects3 mapServerObjects = (IMapServerObjects3)so; IPageLayout3 pageLayout = (IPageLayout3)mapServerObjects.PageLayout;
Solved! Go to Solution.
I am trying to update a server object extension to version 10.2
It appears that manipulating page layouts from version 10.1 isn't available anymore.
Because optimized map service use a completely different drawing engine and source file than MXD-based services, they draw very quickly. However, this also means that they do not support full ArcObjects access from the Carto library. When working with optimized map services, you cannot use any ArcObjects directly related to the map document, such as IMapServerObjects, IMap, ILayer, and IFeatureLayer.