Solved! Go to Solution.
require(["esri/config"], function(esriConfig) {
esriConfig.defaults.io.proxyUrl = "proxy.ashx"
esriConfig.defaults.io.alwaysUseProxy = true;
});<ProxyConfig allowedReferers="*" mustMatch="true"> <serverUrls> <serverUrl url="http://services.arcgisonline.com" matchAll="true"/> <serverUrl url="http://RemoteIP" matchAll="true"/> <serverUrl url="http://RemoteIP:6080" matchAll="true"/> </serverUrls> </ProxyConfig>