It feels like I'm going backwards with this, before I didn't got any errors in the flex application until the service timed out and the ArcGIS Server log showed the 'file not found error'. Now when I try to print from the flex application I get an 'Error during print!' at once. The ArcGIS Server log doesn't show any errors or warnings. But now every time I start or restart a service that has PCHPrintSOE enabled I'm getting the error:ERROR PrintTask().IOException: AutomationException: No such interface supported that doesn't sounds good to me at all...Anyway, trying to print in debug mode I can se urls like this:http://10.202.101.108:8399/arcgis/rest/services/layout/MapServer/exts/PCHPrintSOE/printMap?mapExtent={"xmin":1459087.998475997,"ymin":6549246.780543561,"xmax":1460612.001524003,"ymax":6549953.219456439,"spatialReference":{"wkid":3021}}&printOutput={"mapRotation":0,"pageUnits":1,"format":"pdf","exportSettings":null,"height":9.673913043478262,"width":20.869565217391305,"toRemoveLayoutElements":[],"resolution":92,"borderWidth":[0.5,0.5,0.5,0.5]}&mapElements=[]&layoutElements=[]&mapServices=[{"alpha":1,"visibleIds":"0,1,2,5,6,7","type":"AGS","url":"http://10.202.101.108:8399/arcgis/rest/services/BGK/BGKtest/MapServer","name":"testMap"}]
or if in the other state of the widget something longer like:
http://10.202.101.108:8399/arcgis/rest/services/layout/MapServer/exts/PCHPrintSOE/printLayout?mapExtent={"xmin":1459785.9770552877,"ymin":6549455.489437812,"xmax":1459885.9770552877,"ymax":6549598.989437812,"spatialReference":{"wkid":3021}}&printOutput={"resolution":100,"format":"pdf","exportSettings":null,"width":21,"height":29.7,"borderWidth":[0.5,0.5,0.5,0.5],"toRemoveLayoutElements":["*"],"mapRotation":0,"pageUnits":8}&mapElements=[]&layoutElements=[{"xOffset":0,"yOffset":0,"anchor":"bottomleft","symbol":{"size":48,"type":"pchNorthArrow"},"geometry":{"x":0.5,"y":0.5},"visible":true,"name":null},{"xOffset":0,"yOffset":0,"anchor":"topmid","symbol":{"text":"Title","textSymbol":{"angle":0,"color":{"green":0,"alpha":255,"blue":0,"red":0},"text":null,"font":null,"xoffset":0,"yoffset":0,"borderLineColor":null,"type":"agsJsonSymbol"},"type":"pchTextElement"},"geometry":{"x":10.5,"y":29.2},"visible":true,"name":"myTitle"},{"xOffset":0,"yOffset":0,"anchor":"bottomleft","symbol":{"barHeight":5,"type":"pchScaleBar"},"geometry":{"x":0.5,"y":0.5},"visible":true,"name":"myScaleBar"},{"xOffset":0,"yOffset":0,"anchor":"bottommid","symbol":{"text":"© copyright pch","textSymbol":{"angle":0,"color":{"green":255,"alpha":255,"blue":255,"red":255},"text":null,"font":null,"xoffset":0,"yoffset":0,"borderLineColor":null,"type":"agsJsonSymbol"},"type":"pchTextElement"},"geometry":{"x":10.5,"y":0.5},"visible":true,"name":"myCopyRight"},{"xOffset":0,"yOffset":0,"anchor":"topleft","symbol":{"mapUnits":8,"separator":":","pageUnits":9,"backgroundColor":{"green":255,"alpha":255,"blue":255,"red":255},"style":0,"numberFormat":{"roundingOption":0,"roundingValue":3},"pageUnitLabel":"","mapUnitLabel":"","type":"pchScaleText"},"geometry":{"x":0.5,"y":29.2},"visible":true,"name":null}]&mapServices=[{"alpha":1,"type":"AGS","url":"http://10.202.101.108:8399/arcgis/rest/services/BGK/BGKtest/MapServer","name":"testMap","visibleIds":"0,1,2,5,6,7"}]
And I've forgot to mention that I'm getting two warnings when compiling the flex widget:1084: function 'getClass' will be scoped to the default namespace: BaseWidget: internal. It will not be visible outside of this package. PchPrintWidget.mxml /Hallsbergskartan_231_test/src/lu/etat/pch/gis/widgets/pchPrintWidget line 488 Flex Problem
3596: Duplicate variable definition. PchPrintWidget.mxml /Hallsbergskartan_231_test/src/lu/etat/pch/gis/widgets/pchPrintWidget line 469 Flex Problem
And when running in debug mode I also get a lot of warnings like these:warning: unable to bind to property 'selected' on class 'Object' (class is not an IEventDispatcher)
warning: unable to bind to property 'popupClass' on class 'Object' (class is not an IEventDispatcher)
warning: unable to bind to property 'visible' on class 'Object' (class is not an IEventDispatcher)
warning: unable to bind to property 'label' on class 'Object' (class is not an IEventDispatcher)
warning: unable to bind to property 'editable' on class 'Object' (class is not an IEventDispatcher)
/Mattias