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