0
Reply

URL Mappings not Working

Suresh Raj

Suresh Raj

Apr 7 2009 12:18 PM
11.5k
I'm trying to use the urlmappings in asp.net 2.0 on iis 6 / windows server 2003.
Everything works fine in Our Local server, but in Live server I get a 404 page.
Here is sample of web.config with relevant bits:
<system.web>
<urlMappings enabled="true">

      <add url="~/UI/Tradeshow/OrderSearch" mappedUrl="~/UI/Tradeshow/ExhibitOrderSearch.aspx"></add>

</urlMappings>
</system.web>

- when I go to http://xxxx/UI/Tradeshow/OrderSearch in local, everything works fine and it goes to the correct page.

On the server I get a 404 page for the same url path

If I change it to

<add url="~/UI/Tradeshow/ExhibitOrderSearch.aspx"  mappedUrl="~/UI/Tradeshow/ExhibitOrderSearch.aspx"/>

in Live server it works fine, I have inserted aspnet_isapi.dll to the WildCard Character mapping in IIS too.

 Am I missing something in the setup of IIS ?

 

My IIS Log Details in Live Server

as follows

Error:
2009-03-29 08:21:04 W3SVC127083300 127.0.0.1 GET /UI/Tradeshow/OrderSearch - 8000 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+WOW64;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) 404 0 2

After Edited the Url = ExhibitOrderSearch.aspx
 
2009-03-29 10:31:30 W3SVC127083300 127.0.0.1 GET /UI/Tradeshow/ExhibitOrderSearch.aspx - 8000 CIMA_MILW\winfotech 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+WOW64;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) 200 0 0

2009-03-29 10:31:35 W3SVC127083300 127.0.0.1 POST /UI/Tradeshow/ExhibitOrderSearch.aspx - 8000 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+WOW64;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) 401 1 0

Please help me to solve this

Thanx in Advance ..

Suresh