In My Silverlight app, PrintTask was working with no problem. But after to set a Map Service to allow "
"{Error code '400': 'Unable to complete operation.'
Error executing tool.: Layer "Custom Layer": Unable to connect to map server at http://myserver/arcgis/rest/services/DynamicMap/MapServer.
Failed to execute (Export Web Map).
Failed to execute (Export Web Map Task).}"
I did set printTask.ProxyURL = Proxy_URL, also with this proxy, I can call the Map Service and display it on my map control with no problem but cannot print with the MapService?? Please help on this!!
Thanks,
Tom
Ok, you are right. The problem is this proxy. I am using a proxy - for ArcGIS API for Silverlight server-side ASP.NET proxy for IIS, but not a proxy server. I don't know what i am missing.???
<esri:ArcGISDynamicMapServiceLayer ID="Dynimac"
Url="http://myserver/ArcGISToken/rest/services/dynimac/MapServer"
ProxyURL="../proxy.ashx" />
The map service is successfully to add to my map through this proxy. I know my proxy is configured correctly.
Print task is also working correctly, because of printing map with other non-secured map services has no problem at all.
Any thoughts?? PrintTask is not working after secured Map Service
have you added parameter username and password in your proxy file (proxy.config)?
another way is add your token in your dynamic map service
1. generate your token through http://host:6080/arcgis/rest
2. put your http referrer or ip
3. define your expiration time
4. click generate token
5. once you get the token, put it on your end point secured rest service
Url="http://myserver/ArcGISToken/rest/services/dynimac/MapServer?token=generatedtoken"
Yes, I had added parameter username and password in your proxy file (proxy.config). That why the map service is successfully to add to my map through this proxy. I know my proxy is configured correctly.
We had this problem after the upgrade of Internet Explorer 8 across to Internet Explorer 10/11.
To get around this, the service user will require the change to it's profile
Control Panel -> Internet Options -> Advanced -> Security
Uncheck "Check for publisher's certificate revocation"
Uncheck "Check for server certificates revocation*"
Thanks Susan for sharing!
But this does not work for me. My problem is to print a map with a secured map service.
Hi,
I have the same problem. Did you found a solution for it? I'm using Api 3.3 for Silverlight and Arcgis server 10.3.
I have this problem as well. Did anyone else resolve this?