Solved! Go to Solution.
<serverUrl url="http://yourserver/arcgis/rest/services" matchAll="true"> </serverUrl>
500 TrustFailure 323ms /jsapi...ompact/ (line 15) "NetworkError: 500 TrustFailure - https://dmzarcsrv001/proxy/proxy.ashx?https://dmzarcsrv001/arcgis/rest/services/Test/Scratch/MapServer?f=json&dpi=96&transparent=true&format=png8"
<!DOCTYPE html> <html> <head> <title>Create a Web Map</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=7, IE=9, IE=10"> <link rel="stylesheet" type="text/css" href="https://serverapi.arcgisonline.com/jsapi/arcgis/3.5/js/esri/css/esri.css"> <style> html,body,#mapDiv,.map.container{ padding:0; margin:0; height:100%; } #legendDiv{ background-color: #fff; position: absolute !important; z-index: 99; top:10px; right:20px; } </style> <script>var dojoConfig = { parseOnLoad:true };</script> <script src="https://serverapi.arcgisonline.com/jsapi/arcgis/3.5compact/"></script> <script> dojo.require("esri.map"); dojo.require("esri.arcgis.utils"); dojo.require("esri.dijit.Legend"); dojo.require("esri.IdentityManager"); var map; function init(){ esri.config.defaults.io.proxyUrl = "https://dmzarcsrv001/proxy/proxy.ashx"; esri.config.defaults.io.alwaysUseProxy = true; map = new esri.Map("mapDiv", { center: [-56.049, 38.485], zoom: 3, basemap: "streets" }); var dynamicMapServiceLayer = new esri.layers.ArcGISDynamicMapServiceLayer("https://dmzarcsrv001/arcgis/rest/services/Test/Scratch/MapServer") map.addLayer(dynamicMapServiceLayer); } dojo.ready(init); </script> </head> <body> <div id="mapDiv"></div> <div id="legendDiv"></div> </body> </html>
<?xml version="1.0" encoding="utf-8" ?> <!-- Proxy config is used to set the ArcGIS Server services that the proxy will forward to. mustMatch: true to only proxy to sites listed, false to proxy to any site --> <ProxyConfig mustMatch="true"> <serverUrls> <!-- serverUrl options: url = location of the ArcGIS Server, either specific URL or stem matchAll = true to forward any request beginning with the url token = (optional) token to include for secured service dynamicToken = if true, gets token dynamically with username and password stored in web.config file's appSettings section. --> <serverUrl url="https://sampleserver1.arcgisonline.com/arcgis/rest/services/" matchAll="true"></serverUrl> <serverUrl url="https://sampleserver2.arcgisonline.com/arcgis/rest/services/" matchAll="true" token=""></serverUrl> <serverUrl url="https://server.arcgisonline.com/arcgis/rest/services/" matchAll="true"></serverUrl> <serverUrl url="https://orthogonal.esri.com/arcgis/rest/services/" matchAll="true"></serverUrl> <serverUrl url="https://hummer/ArcGIS/rest/services" matchAll="true" dynamicToken="true"></serverUrl> <serverUrl url="https://services.arcgisonline.com/arcgis/rest/services/" matchAll="true"></serverUrl> <serverUrl url="https://dmzarcsrv001/arcgis/rest/services/" matchAll="true"></serverUrl> <serverUrl url="https://www.arcgis.com" matchAll="true"></serverUrl> <serverUrl url="http://www.google.it" matchAll="true"></serverUrl> <serverUrl url="http://hydro-gis.jrc.ec.europa.eu/arcgis/rest/services" matchAll="true"></serverUrl> <serverUrl url="http://dmzarcsrv001/dev" matchAll="true"></serverUrl> </serverUrls> </ProxyConfig>