in addtion to this topic: i got a mapservice containing an aerial image and polygon features. This service is token-based secured in AGS 10.3.1 and it's added as an element with saved credentials in Portal for ArcGIS. I can load the service via basemap gallery widget into my WAB application (Dev) without any problems and printing works fine. But if I insert the referrer-Urls (http://OURSERVER.de, http://OURSERVER.de:3344) from our server inside element's use limitations printing fails and i get the following error log:
<Msg time='2015-08-13T13:30:39,243' type='SEVERE' code='20010' target='Geoprocessing/SecurePrintingTools.GPServer' methodName='GPServerSync.CheckMessages' machine='H2200268.STRATOSERVER.NET' process='9736' thread='11500' user='null' >Error executing tool. Export Web Map Job ID: jd8a975a112704ce89dc31a6ef7ed0181 : Layer "layer12": Unable to connect to map server at http://OURSERVER.de/arcgis_hok/sharing/servers/XXXXXXXXXXXXXXXXXXXXXXXXXXXXX/rest/services/HOKis_Karten/FDOP2013_Flst/MapServer. ERROR: code:403, You do not have permissions to access this resource or perform this operation. Access to this resource is forbidden, regardless of authorization. Failed to execute (ExportWebMap). Failed to execute (Export Web Map).</Msg>
The printing service is setup on the same AGS instance and printing other layers and basemaps works just fine. I think there's a special port for printing issues, which I can't figure out. Any ideas?
I appreciate any hints.