title: URL Mapping works on localhost but not on production server in asp.net
body: <p>I have certain values that are <code>mapped</code> in <code>web.config</code> file for <code>URL Mapping</code>. When i browse for file it works on <code>localhost</code>. But, when i deploy this application on <code>IIS</code> on Production it wont work. shows Error: "<code>404: The resource cannot be found.</code>" dont know why?</p>
  
  <p>Any idea?</p>
  
  <p><strong>Web.config markup:</strong></p>
  
  <pre><code>&lt;urlMappings enabled="true"&gt;
        &lt;add url="~/Pune" mappedUrl="~/City.aspx?ID=1"/&gt;
  &lt;/urlMappings&gt;
  </code></pre>
  
  <p><strong>In .aspx file:</strong></p>
  
  <pre><code>&lt;a href="Pune"&gt;Pune City&lt;/a&gt;
  </code></pre>
  
  <p>After searching i have got some clue that it must be:</p>
  
  <pre><code>&lt;urlMappings enabled="true"&gt;
            &lt;add url="~/Pune" mappedUrl="http://mycustomdomain.com/City.aspx?ID=1"/&gt;
  &lt;/urlMappings&gt;
  </code></pre>
  
  <p>But, unfortunately this too wont work..!</p>
  
  <p>Anything else..do we need to do settings in <code>IIS</code> or <code>web.config</code> file?</p>