manvinderk

Proxy.ashx problem

Discussion created by manvinderk on Mar 11, 2014
Latest reply on Apr 10, 2014 by bsvensson-esristaff
I downloaded source from  http://github.com/Esri/resource-proxy   for .net. My proxy.config is simple
<ProxyConfig   mustMatch="false">
    <serverUrls>
     
      <serverUrl url="http://services.arcgisonline.com"     matchAll="true"  />
      <serverUrl url="http://server.arcgisonline.com"     matchAll="true"  />
    
    </serverUrls>
</ProxyConfig>

Problem i am having is when i test my proxy ,it retrieves the info/data from the given URL but path for all .css ,image files is relative to my local machine.
My request looks like :http://local.XYZ.com/wewportal/proxy.ashx?http://server.arcgisonline.com
error i see in Firebug :"NetworkError: 404 Not Found - http://local.xyz.com/arcgis/rest/static/main.css"

my website is in MVC4 and proxy.ashx,proxy.config are in the root directory.Am i missing some setting on IIS ?

Thanks
Manvi

Attachments

Outcomes